aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/m32r_pcc.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2008-02-05 01:27:35 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:08 -0500
commit906da809c5be30b4c7f32bb6a489fb25ad794878 (patch)
tree9516df9eb1a64ee94d185d2711bde3d1defaabb5 /drivers/pcmcia/m32r_pcc.c
parentecb8a8472f6d314096f20885722f2033d2071719 (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/m32r_pcc.c')
-rw-r--r--drivers/pcmcia/m32r_pcc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pcmcia/m32r_pcc.c b/drivers/pcmcia/m32r_pcc.c
index ec4c1253ebbb..2b42b7155e34 100644
--- a/drivers/pcmcia/m32r_pcc.c
+++ b/drivers/pcmcia/m32r_pcc.c
@@ -65,7 +65,7 @@ typedef struct pcc_socket {
65 u_short type, flags; 65 u_short type, flags;
66 struct pcmcia_socket socket; 66 struct pcmcia_socket socket;
67 unsigned int number; 67 unsigned int number;
68 kio_addr_t ioaddr; 68 unsigned int ioaddr;
69 u_long mapaddr; 69 u_long mapaddr;
70 u_long base; /* PCC register base */ 70 u_long base; /* PCC register base */
71 u_char cs_irq, intr; 71 u_char cs_irq, intr;
@@ -310,7 +310,8 @@ static int __init is_alive(u_short sock)
310 return 0; 310 return 0;
311} 311}
312 312
313static void add_pcc_socket(ulong base, int irq, ulong mapaddr, kio_addr_t ioaddr) 313static void add_pcc_socket(ulong base, int irq, ulong mapaddr,
314 unsigned int ioaddr)
314{ 315{
315 pcc_socket_t *t = &socket[pcc_sockets]; 316 pcc_socket_t *t = &socket[pcc_sockets];
316 317
@@ -491,7 +492,7 @@ static int _pcc_set_io_map(u_short sock, struct pccard_io_map *io)
491 u_char map; 492 u_char map;
492 493
493 debug(3, "m32r-pcc: SetIOMap(%d, %d, %#2.2x, %d ns, " 494 debug(3, "m32r-pcc: SetIOMap(%d, %d, %#2.2x, %d ns, "
494 "%#lx-%#lx)\n", sock, io->map, io->flags, 495 "%#x-%#x)\n", sock, io->map, io->flags,
495 io->speed, io->start, io->stop); 496 io->speed, io->start, io->stop);
496 map = io->map; 497 map = io->map;
497 498