]> git.sur5r.net Git - u-boot/blobdiff - board/evb64260/evb64260.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / board / evb64260 / evb64260.c
index 6a9d1645694ebab6b3eace8289d5919f2fbaf739..ab599410b27f1a17d521e15b09684cf4c5553ffd 100644 (file)
@@ -37,6 +37,9 @@
 #include "mpsc.h"
 #include "i2c.h"
 #include "64260.h"
+
+DECLARE_GLOBAL_DATA_PTR;
+
 #ifdef CONFIG_ZUMA_V2
 extern void zuma_mbox_init(void);
 #endif
@@ -323,8 +326,6 @@ int misc_init_r (void)
 void
 after_reloc(ulong dest_addr)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* check to see if we booted from the sram.  If so, move things
         * back to the way they should be. (we're running from main
         * memory at this point now */