aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-24 09:58:54 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-08-03 03:03:59 -0400
commit9a017a910346afd88ec2e065989903bf211a7d37 (patch)
treeb407945c6e762f252bb81ae0fd64c745bba2ad11 /drivers/net/wireless/orinoco
parent2ce4905e4da9f512b38f56a53ece9da2072dd164 (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/orinoco')
-rw-r--r--drivers/net/wireless/orinoco/orinoco_cs.c5
-rw-r--r--drivers/net/wireless/orinoco/spectrum_cs.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c
index 41ca4f1b395f..6d514b5462fd 100644
--- a/drivers/net/wireless/orinoco/orinoco_cs.c
+++ b/drivers/net/wireless/orinoco/orinoco_cs.c
@@ -257,7 +257,8 @@ orinoco_cs_config(struct pcmcia_device *link)
257 /* We initialize the hermes structure before completing PCMCIA 257 /* We initialize the hermes structure before completing PCMCIA
258 * configuration just in case the interrupt handler gets 258 * configuration just in case the interrupt handler gets
259 * called. */ 259 * called. */
260 mem = ioport_map(link->io.BasePort1, link->io.NumPorts1); 260 mem = ioport_map(link->resource[0]->start,
261 resource_size(link->resource[0]));
261 if (!mem) 262 if (!mem)
262 goto failed; 263 goto failed;
263 264
@@ -279,7 +280,7 @@ orinoco_cs_config(struct pcmcia_device *link)
279 } 280 }
280 281
281 /* Register an interface with the stack */ 282 /* Register an interface with the stack */
282 if (orinoco_if_add(priv, link->io.BasePort1, 283 if (orinoco_if_add(priv, link->resource[0]->start,
283 link->irq, NULL) != 0) { 284 link->irq, NULL) != 0) {
284 printk(KERN_ERR PFX "orinoco_if_add() failed\n"); 285 printk(KERN_ERR PFX "orinoco_if_add() failed\n");
285 goto failed; 286 goto failed;
diff --git a/drivers/net/wireless/orinoco/spectrum_cs.c b/drivers/net/wireless/orinoco/spectrum_cs.c
index 39399cd2e683..4f8f55eab955 100644
--- a/drivers/net/wireless/orinoco/spectrum_cs.c
+++ b/drivers/net/wireless/orinoco/spectrum_cs.c
@@ -319,7 +319,8 @@ spectrum_cs_config(struct pcmcia_device *link)
319 /* We initialize the hermes structure before completing PCMCIA 319 /* We initialize the hermes structure before completing PCMCIA
320 * configuration just in case the interrupt handler gets 320 * configuration just in case the interrupt handler gets
321 * called. */ 321 * called. */
322 mem = ioport_map(link->io.BasePort1, link->io.NumPorts1); 322 mem = ioport_map(link->resource[0]->start,
323 resource_size(link->resource[0]));
323 if (!mem) 324 if (!mem)
324 goto failed; 325 goto failed;
325 326
@@ -346,7 +347,7 @@ spectrum_cs_config(struct pcmcia_device *link)
346 } 347 }
347 348
348 /* Register an interface with the stack */ 349 /* Register an interface with the stack */
349 if (orinoco_if_add(priv, link->io.BasePort1, 350 if (orinoco_if_add(priv, link->resource[0]->start,
350 link->irq, NULL) != 0) { 351 link->irq, NULL) != 0) {
351 printk(KERN_ERR PFX "orinoco_if_add() failed\n"); 352 printk(KERN_ERR PFX "orinoco_if_add() failed\n");
352 goto failed; 353 goto failed;