From: Nishanth Menon Date: Fri, 19 Nov 2010 16:19:40 +0000 (-0500) Subject: omap4: board: change global data pointer to file scope X-Git-Tag: v2010.12-rc2~41^2~1^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93e3568bd569ce4c079a84e20ea08da99ce83470;p=platform%2Fkernel%2Fu-boot.git omap4: board: change global data pointer to file scope DECLARE_GLOBAL_DATA_PTR is currently defined within the scope of function while it is a global pointer. Change the scope of definition to replicate it's global scope. This seems to help gcc 4.5 optimizations as well. Signed-off-by: Nishanth Menon Signed-off-by: Sandeep Paulraj --- diff --git a/arch/arm/cpu/armv7/omap4/board.c b/arch/arm/cpu/armv7/omap4/board.c index e7651d2..fcd29a7 100644 --- a/arch/arm/cpu/armv7/omap4/board.c +++ b/arch/arm/cpu/armv7/omap4/board.c @@ -32,6 +32,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + /* * Routine: s_init * Description: Does early system init of muxing and clocks. @@ -100,7 +102,6 @@ u32 sdram_size(void) */ int dram_init(void) { - DECLARE_GLOBAL_DATA_PTR; gd->ram_size = sdram_size();