diff options
Diffstat (limited to 'arch/sh/cchips/hd6446x')
-rw-r--r-- | arch/sh/cchips/hd6446x/hd64461/io.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/sh/cchips/hd6446x/hd64461/io.c b/arch/sh/cchips/hd6446x/hd64461/io.c index f77f18f2ba7f..7909a1b7b512 100644 --- a/arch/sh/cchips/hd6446x/hd64461/io.c +++ b/arch/sh/cchips/hd6446x/hd64461/io.c | |||
@@ -53,11 +53,6 @@ static __inline__ unsigned long PORT2ADDR(unsigned long port) | |||
53 | return 0xa0000000 + (port & 0x1fffffff); | 53 | return 0xa0000000 + (port & 0x1fffffff); |
54 | } | 54 | } |
55 | 55 | ||
56 | static inline void delay(void) | ||
57 | { | ||
58 | ctrl_inw(0xa0000000); | ||
59 | } | ||
60 | |||
61 | unsigned char hd64461_inb(unsigned long port) | 56 | unsigned char hd64461_inb(unsigned long port) |
62 | { | 57 | { |
63 | return *(volatile unsigned char*)PORT2ADDR(port); | 58 | return *(volatile unsigned char*)PORT2ADDR(port); |
@@ -66,7 +61,7 @@ unsigned char hd64461_inb(unsigned long port) | |||
66 | unsigned char hd64461_inb_p(unsigned long port) | 61 | unsigned char hd64461_inb_p(unsigned long port) |
67 | { | 62 | { |
68 | unsigned long v = *(volatile unsigned char*)PORT2ADDR(port); | 63 | unsigned long v = *(volatile unsigned char*)PORT2ADDR(port); |
69 | delay(); | 64 | ctrl_delay(); |
70 | return v; | 65 | return v; |
71 | } | 66 | } |
72 | 67 | ||
@@ -88,7 +83,7 @@ void hd64461_outb(unsigned char b, unsigned long port) | |||
88 | void hd64461_outb_p(unsigned char b, unsigned long port) | 83 | void hd64461_outb_p(unsigned char b, unsigned long port) |
89 | { | 84 | { |
90 | *(volatile unsigned char*)PORT2ADDR(port) = b; | 85 | *(volatile unsigned char*)PORT2ADDR(port) = b; |
91 | delay(); | 86 | ctrl_delay(); |
92 | } | 87 | } |
93 | 88 | ||
94 | void hd64461_outw(unsigned short b, unsigned long port) | 89 | void hd64461_outw(unsigned short b, unsigned long port) |