summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson/common/early_printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/loongson/common/early_printk.c')
-rw-r--r--arch/mips/loongson/common/early_printk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/loongson/common/early_printk.c b/arch/mips/loongson/common/early_printk.c
index ced461b39069..6ca632e529dc 100644
--- a/arch/mips/loongson/common/early_printk.c
+++ b/arch/mips/loongson/common/early_printk.c
@@ -30,7 +30,7 @@ void prom_putchar(char c)
int timeout;
unsigned char *uart_base;
- uart_base = (unsigned char *)_loongson_uart_base;
+ uart_base = (unsigned char *)_loongson_uart_base[0];
timeout = 1024;
while (((serial_in(uart_base, UART_LSR) & UART_LSR_THRE) == 0) &&