[PATCH 083/111] LEON: I2CMST driver warnings fixes
Daniel Hellstrom
daniel at gaisler.com
Thu Feb 26 16:39:25 UTC 2015
---
c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c | 2 +-
c/src/lib/libbsp/sparc/shared/include/i2cmst.h | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c b/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c
index f71af0b..b95e39f 100644
--- a/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c
+++ b/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c
@@ -268,7 +268,7 @@ static rtems_libi2c_bus_ops_t gr_i2cmst_ops = {
};
/* Get Hardware and disable it */
-int i2cmst_device_init(gr_i2cmst_prv_t *priv)
+static int i2cmst_device_init(gr_i2cmst_prv_t *priv)
{
struct amba_dev_info *ambadev;
struct ambapp_core *pnpinfo;
diff --git a/c/src/lib/libbsp/sparc/shared/include/i2cmst.h b/c/src/lib/libbsp/sparc/shared/include/i2cmst.h
index e63d2f8..3eee717 100644
--- a/c/src/lib/libbsp/sparc/shared/include/i2cmst.h
+++ b/c/src/lib/libbsp/sparc/shared/include/i2cmst.h
@@ -55,6 +55,9 @@ typedef struct gr_i2cmst_regs {
#define GRI2C_STATUS_IDLE 0x00000000
+/* Register I2CMST driver to Driver Manager */
+void i2cmst_register_drv (void);
+
#ifdef __cplusplus
}
#endif
--
1.7.0.4
More information about the devel
mailing list