TQM85xx: fix typo introduce by commit ffbb5cb9
[oweals/u-boot.git] / cpu / arm720t / serial_netarm.c
index 5ad98f06fdb8c0b29bdf6d4c8fcf988aa6df94f6..a593cbc32f0db872c7590085e99753c555e206c9 100644 (file)
@@ -34,6 +34,8 @@
 
 #include <asm/hardware.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define PORTA  (*(volatile unsigned int *)(NETARM_GEN_MODULE_BASE + NETARM_GEN_PORTA))
 #if !defined(CONFIG_NETARM_NS7520)
 #define PORTB  (*(volatile unsigned int *)(NETARM_GEN_MODULE_BASE + NETARM_GEN_PORTB))
@@ -42,7 +44,7 @@
 #endif
 
 /* wait until transmitter is ready for another character */
-#define TXWAITRDY(registers)                                                   \
+#define TXWAITRDY(registers)                                                   \
 {                                                                              \
        ulong tmo = get_timer(0) + 1 * CFG_HZ;                                  \
        while (((registers)->status_a & NETARM_SER_STATA_TX_RDY) == 0 ) {       \
@@ -67,9 +69,6 @@ extern void _netarm_led_FAIL1(void);
  */
 void serial_setbrg (void)
 {
-       /* get the gd pointer */
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* set 0 ... make sure pins are configured for serial */
 #if !defined(CONFIG_NETARM_NS7520)
        PORTA = PORTB =