[PATCH 081/111] LEON: B1553BRM driver warnings fixes

Daniel Hellstrom daniel at gaisler.com
Thu Feb 26 16:39:23 UTC 2015


---
 c/src/lib/libbsp/sparc/shared/1553/b1553brm.c    |    3 ---
 c/src/lib/libbsp/sparc/shared/include/b1553brm.h |    8 ++++++++
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c b/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c
index 6ec5d64..da8e2af 100644
--- a/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c
+++ b/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c
@@ -1484,11 +1484,8 @@ static void b1553brm_interrupt(void *arg)
 void b1553brm_print_dev(struct drvmgr_dev *dev, int options)
 {
 	brm_priv *pDev = dev->priv;
-	struct amba_dev_info *devinfo;
 	struct brm_reg *regs = pDev->regs;
 
-	devinfo = (struct amba_dev_info *)pDev->dev->businfo;
-
 	/* Print */
 	printf("--- B1553BRM[%d] %s ---\n", pDev->minor, pDev->devName);
 	printf(" REGS:            0x%x\n", (unsigned int)pDev->regs);
diff --git a/c/src/lib/libbsp/sparc/shared/include/b1553brm.h b/c/src/lib/libbsp/sparc/shared/include/b1553brm.h
index 49b2a21..eba0716 100644
--- a/c/src/lib/libbsp/sparc/shared/include/b1553brm.h
+++ b/c/src/lib/libbsp/sparc/shared/include/b1553brm.h
@@ -18,6 +18,8 @@
 #ifndef __B1553BRM_H__
 #define __B1553BRM_H__
 
+#include <drvmgr/drvmgr.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -162,6 +164,12 @@ void b1553brm_register_drv(void);
  */
 extern unsigned short b1553brm_rt_cmd_legalize[16];
 
+/* Print information about all BRM devices handled by this driver */
+void b1553brm_print(int options);
+
+/* Print information about one BRM device */
+void b1553brm_print_dev(struct drvmgr_dev *dev, int options);
+
 #ifdef __cplusplus
 }
 #endif
-- 
1.7.0.4




More information about the devel mailing list