diff options
Diffstat (limited to 'arch/m32r/kernel/io_opsput.c')
-rw-r--r-- | arch/m32r/kernel/io_opsput.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/m32r/kernel/io_opsput.c b/arch/m32r/kernel/io_opsput.c index e34951e8156f..4793bd18e115 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); | |||
36 | 36 | ||
37 | static inline void *_port2addr(unsigned long port) | 37 | static inline void *_port2addr(unsigned long port) |
38 | { | 38 | { |
39 | return (void *)(port + NONCACHE_OFFSET); | 39 | return (void *)(port | (NONCACHE_OFFSET)); |
40 | } | 40 | } |
41 | 41 | ||
42 | /* | 42 | /* |
@@ -44,11 +44,11 @@ static inline void *_port2addr(unsigned long port) | |||
44 | * from 0x10000000 to 0x13ffffff on physical address. | 44 | * from 0x10000000 to 0x13ffffff on physical address. |
45 | * The base address of LAN controller(LAN91C111) is 0x300. | 45 | * The base address of LAN controller(LAN91C111) is 0x300. |
46 | */ | 46 | */ |
47 | #define LAN_IOSTART 0x300 | 47 | #define LAN_IOSTART 0xa0000300 |
48 | #define LAN_IOEND 0x320 | 48 | #define LAN_IOEND 0xa0000320 |
49 | static inline void *_port2addr_ne(unsigned long port) | 49 | static inline void *_port2addr_ne(unsigned long port) |
50 | { | 50 | { |
51 | return (void *)(port + NONCACHE_OFFSET + 0x10000000); | 51 | return (void *)(port + 0x10000000); |
52 | } | 52 | } |
53 | static inline void *_port2addr_usb(unsigned long port) | 53 | static inline void *_port2addr_usb(unsigned long port) |
54 | { | 54 | { |