]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/esd/cpci2dp/cpci2dp.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / esd / cpci2dp / cpci2dp.c
index 1a27ca0911f95d00389e74c6dbbd04d6c8d954f7..36bf329f8192f8962159f3caaa22b7aea955b746 100644 (file)
@@ -26,6 +26,8 @@
 #include <command.h>
 #include <malloc.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int board_early_init_f (void)
 {
        unsigned long cntrl0Reg;
@@ -74,7 +76,6 @@ int misc_init_f (void)
 
 int misc_init_r (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        unsigned long cntrl0Reg;
 
        /* adjust flash start and offset */