]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/oxc/oxc.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / oxc / oxc.c
index fa7ff0215c01bb7a2fdaa14ecb8a6e8e019cb3ce..6cc3cc5a3e48e7e45da7404541a150b82d1598db 100644 (file)
@@ -26,6 +26,8 @@
 #include <pci.h>
 #include <i2c.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int checkboard (void)
 {
        puts (  "Board: OXC8240\n" );
@@ -184,8 +186,6 @@ int misc_init_r (void)
 
 #ifdef CFG_OXC_GENERATE_IP
        {
-               DECLARE_GLOBAL_DATA_PTR;
-
                char str[32];
                unsigned long ip = CFG_OXC_IPMASK;
                bd_t *bd = gd->bd;