]> Git Repo - J-u-boot.git/blobdiff - drivers/ns9750_serial.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[J-u-boot.git] / drivers / ns9750_serial.c
index aced3dae8e26ebcdb59a9065c2e076a587cef047..8dff36774500a343f72efb4a9ba6224bc094076b 100644 (file)
@@ -33,6 +33,8 @@
 #include "ns9750_bbus.h"       /* for GPIOs */
 #include "ns9750_ser.h"                /* for serial configuration */
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define CONSOLE CONFIG_CONS_INDEX
 
 static unsigned int calcBitrateRegister( void );
@@ -183,8 +185,6 @@ void serial_setbrg( void )
 
 static unsigned int calcBitrateRegister( void )
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        return ( NS9750_SER_BITRATE_EBIT |
                 NS9750_SER_BITRATE_CLKMUX_BCLK |
                 NS9750_SER_BITRATE_TMODE |
@@ -204,8 +204,6 @@ static unsigned int calcBitrateRegister( void )
 
 static unsigned int calcRxCharGapRegister( void )
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        return NS9750_SER_RX_CHAR_TIMER_TRUN;
 }
 
This page took 0.026287 seconds and 4 git commands to generate.