pcmcia: do not use io_req_t after call to pcmcia_request_io()
[linux-2.6.git] / sound / pcmcia / pdaudiocf / pdaudiocf.c
index df110df..9f897bc 100644 (file)
@@ -231,7 +231,8 @@ static int pdacf_config(struct pcmcia_device *link)
        if (ret)
                goto failed;
 
-       if (snd_pdacf_assign_resources(pdacf, link->io.BasePort1, link->irq) < 0)
+       if (snd_pdacf_assign_resources(pdacf, link->resource[0]->start,
+                                       link->irq) < 0)
                goto failed;
 
        return 0;