]> Git Repo - J-u-boot.git/blobdiff - board/esd/cpci750/serial.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[J-u-boot.git] / board / esd / cpci750 / serial.c
index 01adb33f9f088c1a6de372c3c20767ea15b6b0f6..ba32ac12acedd54ee1b329a5592e55d361a4e5de 100644 (file)
@@ -4,7 +4,7 @@
  *
  * modified for marvell db64360 eval board by
  * Ingo Assmus <[email protected]>
- *  
+ *
  * modified for cpci750 board by
  * Reinhard Arlt <[email protected]>
  *
 #include "../../Marvell/include/memory.h"
 #include "serial.h"
 
-
 #include "mpsc.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int serial_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        mpsc_init (gd->baudrate);
 
        return (0);
@@ -70,8 +69,6 @@ int serial_tstc (void)
 
 void serial_setbrg (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        galbrg_set_baudrate (CONFIG_MPSC_PORT, gd->baudrate);
 }
 
This page took 0.024595 seconds and 4 git commands to generate.