]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/ps2ser.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / drivers / ps2ser.c
index e2a38dc3dccd923c1c807e48d5a8e25048b99f42..724fa4058278b63fbfe59192814cdd70bdc983cb 100644 (file)
@@ -21,6 +21,8 @@
 #include <asm/atomic.h>
 #include <ps2mult.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* #define     DEBUG */
 
 #define PS2SER_BAUD    57600
@@ -61,8 +63,6 @@ static int    ps2buf_out_idx;
 #ifdef CONFIG_MPC5xxx
 int ps2ser_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        volatile struct mpc5xxx_psc *psc = (struct mpc5xxx_psc *)PSC_BASE;
        unsigned long baseclk;
        int div;