summaryrefslogtreecommitdiffstats
path: root/arch/m32r/kernel/io_usrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/kernel/io_usrv.c')
-rw-r--r--arch/m32r/kernel/io_usrv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m32r/kernel/io_usrv.c b/arch/m32r/kernel/io_usrv.c
index 9eb161d..39a379af 100644
--- a/arch/m32r/kernel/io_usrv.c
+++ b/arch/m32r/kernel/io_usrv.c
@@ -47,7 +47,7 @@ static inline void *_port2addr(unsigned long port)
else if (port >= UART1_IOSTART && port <= UART1_IOEND)
port = ((port - UART1_IOSTART) << 1) + UART1_REGSTART;
#endif /* CONFIG_SERIAL_8250 || CONFIG_SERIAL_8250_MODULE */
- return (void *)(port + NONCACHE_OFFSET);
+ return (void *)(port | (NONCACHE_OFFSET));
}
static inline void delay(void)
OpenPOWER on IntegriCloud