]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/mips/sgi-ip27/ip27-console.c
Merge tag 'ceph-for-5.4-rc1' of git://github.com/ceph/ceph-client
[linux.git] / arch / mips / sgi-ip27 / ip27-console.c
index 6bdb48d412762c9ab1816b0fd6ec71426efd8ed8..5886bee89d06d1511ccd45f26b2c6ce026178002 100644 (file)
@@ -35,6 +35,7 @@ void prom_putchar(char c)
 {
        struct ioc3_uartregs *uart = console_uart();
 
-       while ((uart->iu_lsr & 0x20) == 0);
-       uart->iu_thr = c;
+       while ((readb(&uart->iu_lsr) & 0x20) == 0)
+               ;
+       writeb(c, &uart->iu_thr);
 }