summaryrefslogtreecommitdiff
path: root/arch/m32r/kernel/io_oaks32r.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/kernel/io_oaks32r.c')
-rw-r--r--arch/m32r/kernel/io_oaks32r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m32r/kernel/io_oaks32r.c b/arch/m32r/kernel/io_oaks32r.c
index 9997dddd24d7..8be323931e4a 100644
--- a/arch/m32r/kernel/io_oaks32r.c
+++ b/arch/m32r/kernel/io_oaks32r.c
@@ -16,7 +16,7 @@
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)