summaryrefslogtreecommitdiff
path: root/arch/m32r/kernel/io_mappi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/kernel/io_mappi.c')
-rw-r--r--arch/m32r/kernel/io_mappi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m32r/kernel/io_mappi.c b/arch/m32r/kernel/io_mappi.c
index 78033165fb5c..3c3da042fbd1 100644
--- a/arch/m32r/kernel/io_mappi.c
+++ b/arch/m32r/kernel/io_mappi.c
@@ -31,7 +31,7 @@ extern void pcc_iowrite(int, unsigned long, void *, size_t, size_t, int);
static inline void *_port2addr(unsigned long port)
{
- return (void *)(port + NONCACHE_OFFSET);
+ return (void *)(port | (NONCACHE_OFFSET));
}
static inline void *_port2addr_ne(unsigned long port)