* Fix a bunch of compiler warnings for gcc 4.0
[oweals/u-boot.git] / board / stamp / stamp.c
index 3fe0134d6816842d28eb93516d7efbff14888116..7e3af20eab2a554d87e8f79070039ff076d2ffe1 100644 (file)
@@ -29,6 +29,8 @@
 #include <asm/mem_init.h>
 #include "stamp.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define STATUS_LED_OFF 0
 #define STATUS_LED_ON  1
 
@@ -49,7 +51,6 @@ int checkboard (void)
 
 long int initdram (int board_type)
 {
-       DECLARE_GLOBAL_DATA_PTR;
 #ifdef DEBUG
        printf ("SDRAM attributes:\n");
        printf ("  tRCD:%d Cycles; tRP:%d Cycles; tRAS:%d Cycles; tWR:%d Cycles; "