X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fshannon%2Fshannon.c;h=8cd1fc34c63b5f235ed34cfc25948aa039ee38ae;hb=6d8962e814c15807dd6ac5757904be2a02d187b8;hp=0d9f146d5224ffe59a080d6a585266bb5a03ea79;hpb=731215ebde3b85f114f7a45eece3c155ba49a2c0;p=u-boot diff --git a/board/shannon/shannon.c b/board/shannon/shannon.c index 0d9f146d52..8cd1fc34c6 100644 --- a/board/shannon/shannon.c +++ b/board/shannon/shannon.c @@ -24,8 +24,7 @@ #include -/* ------------------------------------------------------------------------- */ - +DECLARE_GLOBAL_DATA_PTR; /* * Miscelaneous platform dependent initialisations @@ -33,8 +32,6 @@ int board_init (void) { - DECLARE_GLOBAL_DATA_PTR; - /* memory and cpu-speed are setup before relocation */ /* but if we use InfernoLoader, we must do some inits here */ @@ -75,7 +72,6 @@ int dram_init (void) { #if defined(PHYS_SDRAM_1) || defined(PHYS_SDRAM_2) || \ defined(PHYS_SDRAM_3) || defined(PHYS_SDRAM_4) - DECLARE_GLOBAL_DATA_PTR; bd_t *bd = gd->bd; #endif