]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/pcippc2/pcippc2.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / pcippc2 / pcippc2.c
index 231b50576b38c9e7d6888e9528028d65d7339357..a216c55bc6ad149be937e92d0fb4a9a92b0933e3 100644 (file)
@@ -34,6 +34,8 @@
 #include "sconsole.h"
 #include "fpga_serial.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #if defined(CONFIG_WATCHDOG)
 
 static int pcippc2_wdt_init_done = 0;
@@ -108,8 +110,6 @@ int board_early_init_f (void)
 
 void after_reloc (ulong dest_addr)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* Jump to the main U-Boot board init code
         */
        board_init_r ((gd_t *)gd, dest_addr);