diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-07-24 09:58:54 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-08-03 03:03:59 -0400 |
commit | 9a017a910346afd88ec2e065989903bf211a7d37 (patch) | |
tree | b407945c6e762f252bb81ae0fd64c745bba2ad11 /drivers/net/wireless/airo_cs.c | |
parent | 2ce4905e4da9f512b38f56a53ece9da2072dd164 (diff) |
pcmcia: do not use io_req_t after call to pcmcia_request_io()
After pcmcia_request_io(), do not make use of the values stored in
io_req_t, but instead use those found in struct pcmcia_device->resource[].
CC: netdev@vger.kernel.org
CC: linux-wireless@vger.kernel.org
CC: linux-ide@vger.kernel.org
CC: linux-usb@vger.kernel.org
CC: laforge@gnumonks.org
CC: linux-mtd@lists.infradead.org
CC: alsa-devel@alsa-project.org
CC: linux-serial@vger.kernel.org
Acked-by: Marcel Holtmann <marcel@holtmann.org> (for drivers/bluetooth/)
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/wireless/airo_cs.c')
-rw-r--r-- | drivers/net/wireless/airo_cs.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c index 9389ba004fb9..b7e7f5054e44 100644 --- a/drivers/net/wireless/airo_cs.c +++ b/drivers/net/wireless/airo_cs.c | |||
@@ -271,7 +271,7 @@ static int airo_config(struct pcmcia_device *link) | |||
271 | goto failed; | 271 | goto failed; |
272 | ((local_info_t *)link->priv)->eth_dev = | 272 | ((local_info_t *)link->priv)->eth_dev = |
273 | init_airo_card(link->irq, | 273 | init_airo_card(link->irq, |
274 | link->io.BasePort1, 1, &link->dev); | 274 | link->resource[0]->start, 1, &link->dev); |
275 | if (!((local_info_t *)link->priv)->eth_dev) | 275 | if (!((local_info_t *)link->priv)->eth_dev) |
276 | goto failed; | 276 | goto failed; |
277 | 277 | ||
@@ -281,12 +281,10 @@ static int airo_config(struct pcmcia_device *link) | |||
281 | if (link->conf.Vpp) | 281 | if (link->conf.Vpp) |
282 | printk(", Vpp %d.%d", link->conf.Vpp/10, link->conf.Vpp%10); | 282 | printk(", Vpp %d.%d", link->conf.Vpp/10, link->conf.Vpp%10); |
283 | printk(", irq %d", link->irq); | 283 | printk(", irq %d", link->irq); |
284 | if (link->io.NumPorts1) | 284 | if (link->resource[0]) |
285 | printk(", io 0x%04x-0x%04x", link->io.BasePort1, | 285 | printk(" & %pR", link->resource[0]); |
286 | link->io.BasePort1+link->io.NumPorts1-1); | 286 | if (link->resource[1]) |
287 | if (link->io.NumPorts2) | 287 | printk(" & %pR", link->resource[1]); |
288 | printk(" & 0x%04x-0x%04x", link->io.BasePort2, | ||
289 | link->io.BasePort2+link->io.NumPorts2-1); | ||
290 | if (link->win) | 288 | if (link->win) |
291 | printk(", mem 0x%06lx-0x%06lx", req->Base, | 289 | printk(", mem 0x%06lx-0x%06lx", req->Base, |
292 | req->Base+req->Size-1); | 290 | req->Base+req->Size-1); |