pcmcia: do not use io_req_t after call to pcmcia_request_io()
[linux-2.6.git] / drivers / parport / parport_cs.c
index ee56fd6..fc1639c 100644 (file)
@@ -177,12 +177,14 @@ static int parport_config(struct pcmcia_device *link)
     if (ret)
            goto failed;
 
-    p = parport_pc_probe_port(link->io.BasePort1, link->io.BasePort2,
+    p = parport_pc_probe_port(link->resource[0]->start,
+                             link->resource[1]->start,
                              link->irq, PARPORT_DMA_NONE,
                              &link->dev, IRQF_SHARED);
     if (p == NULL) {
        printk(KERN_NOTICE "parport_cs: parport_pc_probe_port() at "
-              "0x%3x, irq %u failed\n", link->io.BasePort1,
+              "0x%3x, irq %u failed\n",
+              (unsigned int) link->resource[0]->start,
               link->irq);
        goto failed;
     }