diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/netlogic/common/earlycons.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/netlogic/common/earlycons.c b/arch/mips/netlogic/common/earlycons.c index f193f7b3bd81..1902fa22d277 100644 --- a/arch/mips/netlogic/common/earlycons.c +++ b/arch/mips/netlogic/common/earlycons.c | |||
@@ -54,7 +54,7 @@ void prom_putchar(char c) | |||
54 | #elif defined(CONFIG_CPU_XLR) | 54 | #elif defined(CONFIG_CPU_XLR) |
55 | uartbase = nlm_mmio_base(NETLOGIC_IO_UART_0_OFFSET); | 55 | uartbase = nlm_mmio_base(NETLOGIC_IO_UART_0_OFFSET); |
56 | #endif | 56 | #endif |
57 | while (nlm_read_reg(uartbase, UART_LSR) == 0) | 57 | while ((nlm_read_reg(uartbase, UART_LSR) & UART_LSR_THRE) == 0) |
58 | ; | 58 | ; |
59 | nlm_write_reg(uartbase, UART_TX, c); | 59 | nlm_write_reg(uartbase, UART_TX, c); |
60 | } | 60 | } |