diff options
author | Nishanth Menon <nm@ti.com> | 2010-12-11 16:41:42 (GMT) |
---|---|---|
committer | Sandeep Paulraj <s-paulraj@ti.com> | 2010-12-11 16:41:42 (GMT) |
commit | ee3894c681e3d8e6ef0f5cfe71f0b7143d864b39 (patch) | |
tree | 160d61d54341b4457be756dadc7e60d818428f9c /arch/arm/cpu/armv7/omap3/emif4.c | |
parent | b03c8403cd770332778eec9142f136a9c870aaeb (diff) | |
download | u-boot-ee3894c681e3d8e6ef0f5cfe71f0b7143d864b39.tar.xz |
omap3: emif|sdrc: use a single global data define
DECLARE_GLOBAL_DATA_PTR declarations in functions are inherently
troublesome with various compilers (e.g. gcc 4.5)
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap3/emif4.c')
-rw-r--r-- | arch/arm/cpu/armv7/omap3/emif4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/omap3/emif4.c b/arch/arm/cpu/armv7/omap3/emif4.c index 2227576..3085637 100644 --- a/arch/arm/cpu/armv7/omap3/emif4.c +++ b/arch/arm/cpu/armv7/omap3/emif4.c @@ -29,6 +29,7 @@ #include <asm/arch/sys_proto.h> #include <asm/arch/emif4.h> +DECLARE_GLOBAL_DATA_PTR; extern omap3_sysinfo sysinfo; static emif4_t *emif4_base = (emif4_t *)OMAP34XX_SDRC_BASE; @@ -139,7 +140,6 @@ void do_emif4_init(void) */ int dram_init(void) { - DECLARE_GLOBAL_DATA_PTR; unsigned int size0 = 0, size1 = 0; size0 = get_sdr_cs_size(CS0); @@ -157,7 +157,6 @@ int dram_init(void) void dram_init_banksize (void) { - DECLARE_GLOBAL_DATA_PTR; unsigned int size0 = 0, size1 = 0; size0 = get_sdr_cs_size(CS0); |