]> git.sur5r.net Git - u-boot/blobdiff - board/sc520_spunk/sc520_spunk.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / board / sc520_spunk / sc520_spunk.c
index e7a7d5188cfdc7fb079de7ce06906a49ce5effaa..ed226fd6423ee68d7deb1a14ef844cd2f7a948bb 100644 (file)
@@ -29,9 +29,7 @@
 #include <asm/pci.h>
 #include <asm/ic/sc520.h>
 
-
-/* ------------------------------------------------------------------------- */
-
+DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * Theory:
@@ -483,8 +481,6 @@ int pci_enable_legacy_video_ports(struct pci_controller *hose)
 
 int board_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        init_sc520();
        bus_init();
        irq_init();