omap3: Remove multiple extern decls for gpmc_cfg
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.
Signed-off-by Sanjeev Premi <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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