summaryrefslogtreecommitdiffstats
path: root/arch/m32r/kernel/io_mappi2.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/kernel/io_mappi2.c')
-rw-r--r--arch/m32r/kernel/io_mappi2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m32r/kernel/io_mappi2.c b/arch/m32r/kernel/io_mappi2.c
index 5c03504bf65..d04e90acccb 100644
--- a/arch/m32r/kernel/io_mappi2.c
+++ b/arch/m32r/kernel/io_mappi2.c
@@ -33,7 +33,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));
}
#define LAN_IOSTART 0x300