diff options
author | Wolfgang Denk | 2006-03-31 18:32:53 +0200 |
---|---|---|
committer | Wolfgang Denk | 2006-03-31 18:32:53 +0200 |
commit | d87080b721e4f8dca977af7571c5338ae7bb8db7 (patch) | |
tree | 514fc21eec39a2dd57f7aea516844a4400f8f140 /board/evb4510 | |
parent | f6dbbe986481cff01334c64cacb971a5f237a9a9 (diff) |
GCC-4.x fixes: clean up global data pointer initialization for all boards.
Diffstat (limited to 'board/evb4510')
-rw-r--r-- | board/evb4510/evb4510.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/board/evb4510/evb4510.c b/board/evb4510/evb4510.c index 0008e5a000e..13abbb70136 100644 --- a/board/evb4510/evb4510.c +++ b/board/evb4510/evb4510.c @@ -25,6 +25,8 @@ #include <asm/hardware.h> #include <command.h> +DECLARE_GLOBAL_DATA_PTR; + #ifdef CONFIG_EVB4510 /* ------------------------------------------------------------------------- */ @@ -35,8 +37,6 @@ int board_init (void) { - DECLARE_GLOBAL_DATA_PTR; - icache_enable(); /* address for the kernel command line */ @@ -52,7 +52,6 @@ int board_init (void) int dram_init (void) { - DECLARE_GLOBAL_DATA_PTR; gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; #if CONFIG_NR_DRAM_BANKS == 2 |