]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/tqm8xx/tqm8xx.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / tqm8xx / tqm8xx.c
index 017bdf9442a8871ebfa737ff0faa9445c33c5e74..520bea873fdf74b1fce470d8a0abaef58bf1ae8d 100644 (file)
 #include <ps2mult.h>
 #endif
 
-/* ------------------------------------------------------------------------- */
+DECLARE_GLOBAL_DATA_PTR;
 
 static long int dram_size (long int, long int *, long int);
 
-/* ------------------------------------------------------------------------- */
-
 #define        _NOT_USED_      0xFFFFFFFF
 
 const uint sdram_table[] =
@@ -104,8 +102,6 @@ const uint sdram_table[] =
 
 int checkboard (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        char *s = getenv ("serial#");
 
        puts ("Board: ");