diff options
Diffstat (limited to 'drivers/char/pcmcia/synclink_cs.c')
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index 522992ed6e49..8ded9b02b9b9 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c | |||
@@ -609,16 +609,15 @@ static int mgslpc_config(struct pcmcia_device *link) | |||
609 | if (ret) | 609 | if (ret) |
610 | goto failed; | 610 | goto failed; |
611 | 611 | ||
612 | info->io_base = link->io.BasePort1; | 612 | info->io_base = link->resource[0]->start; |
613 | info->irq_level = link->irq; | 613 | info->irq_level = link->irq; |
614 | 614 | ||
615 | dev_info(&link->dev, "index 0x%02x:", | 615 | dev_info(&link->dev, "index 0x%02x:", |
616 | link->conf.ConfigIndex); | 616 | link->conf.ConfigIndex); |
617 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 617 | if (link->conf.Attributes & CONF_ENABLE_IRQ) |
618 | printk(", irq %d", link->irq); | 618 | printk(", irq %d", link->irq); |
619 | if (link->io.NumPorts1) | 619 | if (link->resource[0]) |
620 | printk(", io 0x%04x-0x%04x", link->io.BasePort1, | 620 | printk(", io %pR", link->resource[0]); |
621 | link->io.BasePort1+link->io.NumPorts1-1); | ||
622 | printk("\n"); | 621 | printk("\n"); |
623 | return 0; | 622 | return 0; |
624 | 623 | ||