aboutsummaryrefslogtreecommitdiff
path: root/arch/m32r/kernel/io_opsput.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/kernel/io_opsput.c')
-rw-r--r--arch/m32r/kernel/io_opsput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m32r/kernel/io_opsput.c b/arch/m32r/kernel/io_opsput.c
index e34951e8156..5ac84b16faa 100644
--- a/arch/m32r/kernel/io_opsput.c
+++ b/arch/m32r/kernel/io_opsput.c
@@ -36,7 +36,7 @@ extern void pcc_iowrite_word(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));
}
/*