]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/s3c44b0/serial.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / cpu / s3c44b0 / serial.c
index 70b4ee811c5136e1d393e709acac954268b99952..95d0266c6c675cba1a31f98e8c007d9cae21fa37 100644 (file)
@@ -37,6 +37,8 @@
 #include <common.h>
 #include <asm/hardware.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* flush serial input queue. returns 0 on success or negative error
  * number otherwise
  */
@@ -68,8 +70,6 @@ static int serial_flush_output(void)
 
 void serial_setbrg (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        u32 divisor = 0;
 
        /* get correct divisor */