diff options
Diffstat (limited to 'drivers/char/pcmcia/synclink_cs.c')
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index c31a0d913d37..027690b70d2c 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c | |||
@@ -552,10 +552,6 @@ static int mgslpc_probe(struct pcmcia_device *link) | |||
552 | 552 | ||
553 | /* Initialize the struct pcmcia_device structure */ | 553 | /* Initialize the struct pcmcia_device structure */ |
554 | 554 | ||
555 | /* Interrupt setup */ | ||
556 | link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING; | ||
557 | link->irq.Handler = NULL; | ||
558 | |||
559 | link->conf.Attributes = 0; | 555 | link->conf.Attributes = 0; |
560 | link->conf.IntType = INT_MEMORY_AND_IO; | 556 | link->conf.IntType = INT_MEMORY_AND_IO; |
561 | 557 | ||
@@ -608,9 +604,7 @@ static int mgslpc_config(struct pcmcia_device *link) | |||
608 | link->conf.ConfigIndex = 8; | 604 | link->conf.ConfigIndex = 8; |
609 | link->conf.Present = PRESENT_OPTION; | 605 | link->conf.Present = PRESENT_OPTION; |
610 | 606 | ||
611 | link->irq.Handler = mgslpc_isr; | 607 | ret = pcmcia_request_irq(link, mgslpc_isr); |
612 | |||
613 | ret = pcmcia_request_irq(link, &link->irq); | ||
614 | if (ret) | 608 | if (ret) |
615 | goto failed; | 609 | goto failed; |
616 | ret = pcmcia_request_configuration(link, &link->conf); | 610 | ret = pcmcia_request_configuration(link, &link->conf); |
@@ -618,7 +612,7 @@ static int mgslpc_config(struct pcmcia_device *link) | |||
618 | goto failed; | 612 | goto failed; |
619 | 613 | ||
620 | info->io_base = link->io.BasePort1; | 614 | info->io_base = link->io.BasePort1; |
621 | info->irq_level = link->irq.AssignedIRQ; | 615 | info->irq_level = link->irq; |
622 | 616 | ||
623 | /* add to linked list of devices */ | 617 | /* add to linked list of devices */ |
624 | sprintf(info->node.dev_name, "mgslpc0"); | 618 | sprintf(info->node.dev_name, "mgslpc0"); |
@@ -628,7 +622,7 @@ static int mgslpc_config(struct pcmcia_device *link) | |||
628 | printk(KERN_INFO "%s: index 0x%02x:", | 622 | printk(KERN_INFO "%s: index 0x%02x:", |
629 | info->node.dev_name, link->conf.ConfigIndex); | 623 | info->node.dev_name, link->conf.ConfigIndex); |
630 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 624 | if (link->conf.Attributes & CONF_ENABLE_IRQ) |
631 | printk(", irq %d", link->irq.AssignedIRQ); | 625 | printk(", irq %d", link->irq); |
632 | if (link->io.NumPorts1) | 626 | if (link->io.NumPorts1) |
633 | printk(", io 0x%04x-0x%04x", link->io.BasePort1, | 627 | printk(", io 0x%04x-0x%04x", link->io.BasePort1, |
634 | link->io.BasePort1+link->io.NumPorts1-1); | 628 | link->io.BasePort1+link->io.NumPorts1-1); |