]> git.sur5r.net Git - u-boot/blobdiff - common/exports.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / common / exports.c
index 9858217ae0c3db1b0e28df5be9b41a995b39f52a..ef253381697bad29490770936869e62e082fb237 100644 (file)
@@ -1,6 +1,8 @@
 #include <common.h>
 #include <exports.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 static void dummy(void)
 {
 }
@@ -12,7 +14,6 @@ unsigned long get_version(void)
 
 void jumptable_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        int i;
 
        gd->jt = (void **) malloc (XF_MAX * sizeof (void *));