]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mpc8313erdb/sdram.c
Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global
[u-boot] / board / freescale / mpc8313erdb / sdram.c
index e6e84107eb28384775c268a6aaa764600b4d3c55..16ec4bbf54645a63b6c915778f8d1fd87e0832b1 100644 (file)
 
 #include <asm/processor.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #ifndef CFG_8313ERDB_BROKEN_PMC
 static void resume_from_sleep(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        u32 magic = *(u32 *)0;
 
        typedef void (*func_t)(void);