aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/i82365.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/i82365.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/i82365.c')
-rw-r--r--drivers/pcmcia/i82365.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c
index 839bb1c0db58..32a2ab119798 100644
--- a/drivers/pcmcia/i82365.c
+++ b/drivers/pcmcia/i82365.c
@@ -164,7 +164,7 @@ struct i82365_socket {
164 u_short type, flags; 164 u_short type, flags;
165 struct pcmcia_socket socket; 165 struct pcmcia_socket socket;
166 unsigned int number; 166 unsigned int number;
167 kio_addr_t ioaddr; 167 unsigned int ioaddr;
168 u_short psock; 168 u_short psock;
169 u_char cs_irq, intr; 169 u_char cs_irq, intr;
170 union { 170 union {
@@ -238,7 +238,7 @@ static u_char i365_get(u_short sock, u_short reg)
238 unsigned long flags; 238 unsigned long flags;
239 spin_lock_irqsave(&bus_lock,flags); 239 spin_lock_irqsave(&bus_lock,flags);
240 { 240 {
241 kio_addr_t port = socket[sock].ioaddr; 241 unsigned int port = socket[sock].ioaddr;
242 u_char val; 242 u_char val;
243 reg = I365_REG(socket[sock].psock, reg); 243 reg = I365_REG(socket[sock].psock, reg);
244 outb(reg, port); val = inb(port+1); 244 outb(reg, port); val = inb(port+1);
@@ -252,7 +252,7 @@ static void i365_set(u_short sock, u_short reg, u_char data)
252 unsigned long flags; 252 unsigned long flags;
253 spin_lock_irqsave(&bus_lock,flags); 253 spin_lock_irqsave(&bus_lock,flags);
254 { 254 {
255 kio_addr_t port = socket[sock].ioaddr; 255 unsigned int port = socket[sock].ioaddr;
256 u_char val = I365_REG(socket[sock].psock, reg); 256 u_char val = I365_REG(socket[sock].psock, reg);
257 outb(val, port); outb(data, port+1); 257 outb(val, port); outb(data, port+1);
258 spin_unlock_irqrestore(&bus_lock,flags); 258 spin_unlock_irqrestore(&bus_lock,flags);
@@ -588,7 +588,7 @@ static int to_cycles(int ns)
588 588
589/*====================================================================*/ 589/*====================================================================*/
590 590
591static int __init identify(kio_addr_t port, u_short sock) 591static int __init identify(unsigned int port, u_short sock)
592{ 592{
593 u_char val; 593 u_char val;
594 int type = -1; 594 int type = -1;
@@ -659,7 +659,7 @@ static int __init identify(kio_addr_t port, u_short sock)
659static int __init is_alive(u_short sock) 659static int __init is_alive(u_short sock)
660{ 660{
661 u_char stat; 661 u_char stat;
662 kio_addr_t start, stop; 662 unsigned int start, stop;
663 663
664 stat = i365_get(sock, I365_STATUS); 664 stat = i365_get(sock, I365_STATUS);
665 start = i365_get_pair(sock, I365_IO(0)+I365_W_START); 665 start = i365_get_pair(sock, I365_IO(0)+I365_W_START);
@@ -678,7 +678,7 @@ static int __init is_alive(u_short sock)
678 678
679/*====================================================================*/ 679/*====================================================================*/
680 680
681static void __init add_socket(kio_addr_t port, int psock, int type) 681static void __init add_socket(unsigned int port, int psock, int type)
682{ 682{
683 socket[sockets].ioaddr = port; 683 socket[sockets].ioaddr = port;
684 socket[sockets].psock = psock; 684 socket[sockets].psock = psock;
@@ -698,7 +698,7 @@ static void __init add_pcic(int ns, int type)
698 base = sockets-ns; 698 base = sockets-ns;
699 if (base == 0) printk("\n"); 699 if (base == 0) printk("\n");
700 printk(KERN_INFO " %s", pcic[type].name); 700 printk(KERN_INFO " %s", pcic[type].name);
701 printk(" ISA-to-PCMCIA at port %#lx ofs 0x%02x", 701 printk(" ISA-to-PCMCIA at port %#x ofs 0x%02x",
702 t->ioaddr, t->psock*0x40); 702 t->ioaddr, t->psock*0x40);
703 printk(", %d socket%s\n", ns, ((ns > 1) ? "s" : "")); 703 printk(", %d socket%s\n", ns, ((ns > 1) ? "s" : ""));
704 704
@@ -772,7 +772,7 @@ static struct pnp_dev *i82365_pnpdev;
772static void __init isa_probe(void) 772static void __init isa_probe(void)
773{ 773{
774 int i, j, sock, k, ns, id; 774 int i, j, sock, k, ns, id;
775 kio_addr_t port; 775 unsigned int port;
776#ifdef CONFIG_PNP 776#ifdef CONFIG_PNP
777 struct isapnp_device_id *devid; 777 struct isapnp_device_id *devid;
778 struct pnp_dev *dev; 778 struct pnp_dev *dev;
@@ -1053,7 +1053,7 @@ static int i365_set_io_map(u_short sock, struct pccard_io_map *io)
1053 u_char map, ioctl; 1053 u_char map, ioctl;
1054 1054
1055 debug(1, "SetIOMap(%d, %d, %#2.2x, %d ns, " 1055 debug(1, "SetIOMap(%d, %d, %#2.2x, %d ns, "
1056 "%#lx-%#lx)\n", sock, io->map, io->flags, 1056 "%#x-%#x)\n", sock, io->map, io->flags,
1057 io->speed, io->start, io->stop); 1057 io->speed, io->start, io->stop);
1058 map = io->map; 1058 map = io->map;
1059 if ((map > 1) || (io->start > 0xffff) || (io->stop > 0xffff) || 1059 if ((map > 1) || (io->start > 0xffff) || (io->stop > 0xffff) ||