diff options
author | Olof Johansson <olof@lixom.net> | 2008-02-05 01:27:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:08 -0500 |
commit | 906da809c5be30b4c7f32bb6a489fb25ad794878 (patch) | |
tree | 9516df9eb1a64ee94d185d2711bde3d1defaabb5 /drivers/pcmcia/rsrc_nonstatic.c | |
parent | ecb8a8472f6d314096f20885722f2033d2071719 (diff) |
pcmcia: replace kio_addr_t with unsigned int everywhere
Remove kio_addr_t, and replace it with unsigned int. No known architecture
needs more than 32 bits for IO addresses and ports and having a separate type
for it is just messy.
Signed-off-by: Olof Johansson <olof@lixom.net>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pcmcia/rsrc_nonstatic.c')
-rw-r--r-- | drivers/pcmcia/rsrc_nonstatic.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c index bfcaad6021cf..a8d100707721 100644 --- a/drivers/pcmcia/rsrc_nonstatic.c +++ b/drivers/pcmcia/rsrc_nonstatic.c | |||
@@ -186,15 +186,16 @@ static int sub_interval(struct resource_map *map, u_long base, u_long num) | |||
186 | ======================================================================*/ | 186 | ======================================================================*/ |
187 | 187 | ||
188 | #ifdef CONFIG_PCMCIA_PROBE | 188 | #ifdef CONFIG_PCMCIA_PROBE |
189 | static void do_io_probe(struct pcmcia_socket *s, kio_addr_t base, kio_addr_t num) | 189 | static void do_io_probe(struct pcmcia_socket *s, unsigned int base, |
190 | unsigned int num) | ||
190 | { | 191 | { |
191 | struct resource *res; | 192 | struct resource *res; |
192 | struct socket_data *s_data = s->resource_data; | 193 | struct socket_data *s_data = s->resource_data; |
193 | kio_addr_t i, j, bad; | 194 | unsigned int i, j, bad; |
194 | int any; | 195 | int any; |
195 | u_char *b, hole, most; | 196 | u_char *b, hole, most; |
196 | 197 | ||
197 | printk(KERN_INFO "cs: IO port probe %#lx-%#lx:", | 198 | printk(KERN_INFO "cs: IO port probe %#x-%#x:", |
198 | base, base+num-1); | 199 | base, base+num-1); |
199 | 200 | ||
200 | /* First, what does a floating port look like? */ | 201 | /* First, what does a floating port look like? */ |
@@ -233,7 +234,7 @@ static void do_io_probe(struct pcmcia_socket *s, kio_addr_t base, kio_addr_t num | |||
233 | } else { | 234 | } else { |
234 | if (bad) { | 235 | if (bad) { |
235 | sub_interval(&s_data->io_db, bad, i-bad); | 236 | sub_interval(&s_data->io_db, bad, i-bad); |
236 | printk(" %#lx-%#lx", bad, i-1); | 237 | printk(" %#x-%#x", bad, i-1); |
237 | bad = 0; | 238 | bad = 0; |
238 | } | 239 | } |
239 | } | 240 | } |
@@ -244,7 +245,7 @@ static void do_io_probe(struct pcmcia_socket *s, kio_addr_t base, kio_addr_t num | |||
244 | return; | 245 | return; |
245 | } else { | 246 | } else { |
246 | sub_interval(&s_data->io_db, bad, i-bad); | 247 | sub_interval(&s_data->io_db, bad, i-bad); |
247 | printk(" %#lx-%#lx", bad, i-1); | 248 | printk(" %#x-%#x", bad, i-1); |
248 | } | 249 | } |
249 | } | 250 | } |
250 | 251 | ||