AHBSTAT: fix build warnings

This commit is contained in:
Daniel Hellstrom
2015-02-04 16:22:41 +01:00
parent bb689e6c8b
commit 0fcd4b33fa
2 changed files with 5 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ struct ahbstat_priv {
uint32_t last_address;
};
int ahbstat_init2(struct drvmgr_dev *dev);
static int ahbstat_init2(struct drvmgr_dev *dev);
struct drvmgr_drv_ops ahbstat_ops =
{
@@ -95,7 +95,7 @@ void ahbstat_register_drv (void)
drvmgr_drv_register(&ahbstat_drv_info.general);
}
int ahbstat_init2(struct drvmgr_dev *dev)
static int ahbstat_init2(struct drvmgr_dev *dev)
{
struct ahbstat_priv *priv;
struct amba_dev_info *ambadev;

View File

@@ -66,6 +66,9 @@ extern int ahbstat_last_error(int minor, uint32_t *status, uint32_t *address);
*/
extern struct ahbstat_regs *ahbstat_get_regs(int minor);
/* Registers the AHBSTAT driver to the Driver Manager */
void ahbstat_register_drv (void);
#ifdef __cplusplus
}
#endif