]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/pcippc2/fpga_serial.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / pcippc2 / fpga_serial.c
index 579bfc702744978cf5af2b80772bcbe741c2d1d9..5f89d9b125e105d71aa2e968cba8459cc28f2983 100644 (file)
@@ -29,6 +29,8 @@
 #include "hardware.h"
 #include "pcippc2.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
   /* 8 data, 1 stop, no parity
    */
 #define LCRVAL         0x03
@@ -92,8 +94,6 @@ int fpga_serial_tstc (void)
 
 void fpga_serial_setbrg (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        int clock_divisor = 115200 / gd->baudrate;
 
        fpga_serial_wait ();