Skip to content
Snippets Groups Projects
Commit 93e3568b authored by Nishanth Menon's avatar Nishanth Menon Committed by Sandeep Paulraj
Browse files

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: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent eb9a28f6
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
#include <asm/arch/sys_proto.h> #include <asm/arch/sys_proto.h>
#include <asm/sizes.h> #include <asm/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
/* /*
* Routine: s_init * Routine: s_init
* Description: Does early system init of muxing and clocks. * Description: Does early system init of muxing and clocks.
...@@ -100,7 +102,6 @@ u32 sdram_size(void) ...@@ -100,7 +102,6 @@ u32 sdram_size(void)
*/ */
int dram_init(void) int dram_init(void)
{ {
DECLARE_GLOBAL_DATA_PTR;
gd->ram_size = sdram_size(); gd->ram_size = sdram_size();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment