]> git.sur5r.net Git - u-boot/blobdiff - board/etx094/etx094.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / board / etx094 / etx094.c
index dba3c1181e641d231b1be6d9467485b70fc40bac..eb58b5d52989641f0cfc408e5fa38a676e154120 100644 (file)
@@ -24,6 +24,8 @@
 #include <common.h>
 #include <mpc8xx.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* ------------------------------------------------------------------------- */
 
 static long int dram_size (long int, long int *, long int);
@@ -90,8 +92,6 @@ const uint sdram_table[] = {
 
 int checkboard (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        char *s = getenv ("serial#");
        char *e;