]> git.sur5r.net Git - u-boot/blobdiff - board/voiceblue/voiceblue.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / board / voiceblue / voiceblue.c
index 7a2d243ef88f3855b40debc1cec2f9cae3102a0b..04093d172c6bf83f3294e1245fd6cdc95bdfa1e7 100644 (file)
 
 #include <common.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int board_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        *((volatile unsigned char *) VOICEBLUE_LED_REG) = 0xaa;
 
        /* arch number of VoiceBlue board */
@@ -39,8 +39,6 @@ int board_init(void)
 
 int dram_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        *((volatile unsigned short *) VOICEBLUE_LED_REG) = 0xff;
 
        /* Take the Ethernet controller out of reset and wait