Skip to contentSkip to conversation

omap3: Remove multiple extern decls for gpmc_cfg

PATCH New Sanjeev Premi 1 participant 1 message Dec 23, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 omap3: Remove multiple extern decls for gpmc_cfg

'gpmc_cfg' had been declared extern in all configuration files. It had been specifically declared extern in some C files as well.

This patch moves the declaration to omap_gpmc.h. This header is included wherever this variable is used.

---
 board/ti/evm/evm.c                     |    3 ++-
 cpu/arm_cortexa8/omap3/sys_info.c      |    1 +
 include/asm-arm/arch-omap3/omap_gpmc.h |    5 +++++
 3 files changed, 8 insertions(+), 1 deletions(-)
board/ti/evm/evm.c +2 -1
index 0718a08..6e3f5e5 100644
@@ -30,11 +30,12 @@
 #include <common.h>
 #include <netdev.h>
 #include <asm/io.h>
+#include <asm/mach-types.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/mux.h>
+#include <asm/arch/omap_gpmc.h>
 #include <asm/arch/sys_proto.h>
 #include <i2c.h>
-#include <asm/mach-types.h>
 #include "evm.h"
 
 /*
cpu/arm_cortexa8/omap3/sys_info.c +1 -0
index 08fb32e..7b6015f 100644
@@ -29,6 +29,7 @@
 #include <asm/io.h>
 #include <asm/arch/mem.h>	/* get mem tables */
 #include <asm/arch/sys_proto.h>
+#include <asm/arch/omap_gpmc.h>
 #include <i2c.h>
 
 extern omap3_sysinfo sysinfo;
include/asm-arm/arch-omap3/omap_gpmc.h +5 -0
index bd22bce..d986343 100644
@@ -80,4 +80,9 @@
 }
 #endif
 
+#ifndef __ASSEMBLY__
+extern struct gpmc *gpmc_cfg;
+#endif
+
 #endif /* __ASM_ARCH_OMAP_GPMC_H */
+
Signature · 1 line
1.6.2.2