X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fintegratorap%2Fintegratorap.c;h=e659907567ba748bab17e0b18ccb601dd0e6e295;hb=9d2459f3532c009bb903b02b57079a3862420a5f;hp=d4f61d6403d530f7139196c6ee523d367f5cb79d;hpb=038ccac511214b062c56f22b9413f784b86bcd87;p=u-boot diff --git a/board/integratorap/integratorap.c b/board/integratorap/integratorap.c index d4f61d6403..e659907567 100644 --- a/board/integratorap/integratorap.c +++ b/board/integratorap/integratorap.c @@ -39,6 +39,8 @@ #include #endif +DECLARE_GLOBAL_DATA_PTR; + void flash__init (void); void ether__init (void); void peripheral_power_enable (void); @@ -65,8 +67,6 @@ static inline void delay (unsigned long loops) int board_init (void) { - DECLARE_GLOBAL_DATA_PTR; - /* arch number of Integrator Board */ gd->bd->bi_arch_number = MACH_TYPE_INTEGRATOR; @@ -480,8 +480,6 @@ void ether__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;