]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/hymod/hymod.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / hymod / hymod.c
index dea0a70a23a410aa68772a9226500080c64e5043..5e98e9edb7f171a0e0e7ff66181959e1296dbfea 100644 (file)
@@ -30,6 +30,8 @@
 #include <i2c.h>
 #include <asm/iopin_8260.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* ------------------------------------------------------------------------- */
 
 /* imports from eeprom.c */
@@ -424,8 +426,6 @@ initdram (int board_type)
 int
 last_stage_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        hymod_conf_t *cp = &gd->bd->bi_hymod_conf;
        int rc;