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/parport | |
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/parport')
-rw-r--r-- | drivers/parport/parport_cs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/parport/parport_cs.c b/drivers/parport/parport_cs.c index ee56fd66d5dc..fc1639c5ada6 100644 --- a/drivers/parport/parport_cs.c +++ b/drivers/parport/parport_cs.c | |||
@@ -177,12 +177,14 @@ static int parport_config(struct pcmcia_device *link) | |||
177 | if (ret) | 177 | if (ret) |
178 | goto failed; | 178 | goto failed; |
179 | 179 | ||
180 | p = parport_pc_probe_port(link->io.BasePort1, link->io.BasePort2, | 180 | p = parport_pc_probe_port(link->resource[0]->start, |
181 | link->resource[1]->start, | ||
181 | link->irq, PARPORT_DMA_NONE, | 182 | link->irq, PARPORT_DMA_NONE, |
182 | &link->dev, IRQF_SHARED); | 183 | &link->dev, IRQF_SHARED); |
183 | if (p == NULL) { | 184 | if (p == NULL) { |
184 | printk(KERN_NOTICE "parport_cs: parport_pc_probe_port() at " | 185 | printk(KERN_NOTICE "parport_cs: parport_pc_probe_port() at " |
185 | "0x%3x, irq %u failed\n", link->io.BasePort1, | 186 | "0x%3x, irq %u failed\n", |
187 | (unsigned int) link->resource[0]->start, | ||
186 | link->irq); | 188 | link->irq); |
187 | goto failed; | 189 | goto failed; |
188 | } | 190 | } |