]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/arm920t/ks8695/serial.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / cpu / arm920t / ks8695 / serial.c
index 0dd91e7dd0eed14a31cd4bfa317f1727e6f3897e..aacd1be630b1800303f1b4cae793bd0bb9b58ef8 100644 (file)
@@ -25,6 +25,8 @@
 #error "Bad: you didn't configure serial ..."
 #endif
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /*
  *     Define the UART hardware register access structure.
  */
@@ -54,7 +56,6 @@ int serial_console = 1;
 
 void serial_setbrg(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        volatile struct ks8695uart *uartp = KS8695_UART_ADDR;
 
        /* Set to global baud rate and 8 data bits, no parity, 1 stop bit*/