]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/mcc200/mcc200.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[people/ms/u-boot.git] / board / mcc200 / mcc200.c
index d1c99fdd85f00f6776b7699894bd58166bc4e662..456411dd92d5e20392255ab9cd1cb63e2b596539 100644 (file)
@@ -30,6 +30,8 @@
 
 #include "mt48lc8m32b2-6-7.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 extern flash_info_t flash_info[];      /* FLASH chips info */
 
 ulong flash_get_size (ulong base, int banknum);
@@ -190,8 +192,6 @@ int checkboard (void)
 
 int misc_init_r (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /*
         * Adjust flash start and offset to detected values
         */