Hi

>@@ -463,13 +463,13 @@ static int simple_config(struct pcmcia_device *link)
>       /* If the card is already configured, look up the port and irq */
>       if (link->function_config) {
>               unsigned int port = 0;
>-              if ((link->io.BasePort2 != 0) &&
>-                  (link->io.NumPorts2 == 8)) {
>-                      port = link->io.BasePort2;
>+              if ((link->resource[1]->end != 0) &&
>+                      (resource_size(link->resource[1]) == 8)) {
>+                      port = link->resource[1]->end;
>                       info->slave = 1;

sorry,
It should be link->resource[1]->start;
                        (resource_size(link->resource[1]) == 8)) {
                        port = link->resource[1]->start;  << HERE!!
 

 

_______________________________________________
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia

Reply via email to