diff options
Diffstat (limited to 'drivers/char/pcmcia/synclink_cs.c')
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index 535aa0899e9f..99feaedc53a1 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c | |||
@@ -70,7 +70,6 @@ | |||
70 | #include <linux/workqueue.h> | 70 | #include <linux/workqueue.h> |
71 | #include <linux/hdlc.h> | 71 | #include <linux/hdlc.h> |
72 | 72 | ||
73 | #include <pcmcia/cs.h> | ||
74 | #include <pcmcia/cistpl.h> | 73 | #include <pcmcia/cistpl.h> |
75 | #include <pcmcia/cisreg.h> | 74 | #include <pcmcia/cisreg.h> |
76 | #include <pcmcia/ds.h> | 75 | #include <pcmcia/ds.h> |
@@ -550,8 +549,6 @@ static int mgslpc_probe(struct pcmcia_device *link) | |||
550 | 549 | ||
551 | /* Initialize the struct pcmcia_device structure */ | 550 | /* Initialize the struct pcmcia_device structure */ |
552 | 551 | ||
553 | link->conf.Attributes = 0; | ||
554 | |||
555 | ret = mgslpc_config(link); | 552 | ret = mgslpc_config(link); |
556 | if (ret) | 553 | if (ret) |
557 | return ret; | 554 | return ret; |
@@ -593,14 +590,14 @@ static int mgslpc_config(struct pcmcia_device *link) | |||
593 | if (ret != 0) | 590 | if (ret != 0) |
594 | goto failed; | 591 | goto failed; |
595 | 592 | ||
596 | link->conf.Attributes = CONF_ENABLE_IRQ; | 593 | link->config_flags |= CONF_ENABLE_IRQ; |
597 | link->config_index = 8; | 594 | link->config_index = 8; |
598 | link->config_regs = PRESENT_OPTION; | 595 | link->config_regs = PRESENT_OPTION; |
599 | 596 | ||
600 | ret = pcmcia_request_irq(link, mgslpc_isr); | 597 | ret = pcmcia_request_irq(link, mgslpc_isr); |
601 | if (ret) | 598 | if (ret) |
602 | goto failed; | 599 | goto failed; |
603 | ret = pcmcia_request_configuration(link, &link->conf); | 600 | ret = pcmcia_enable_device(link); |
604 | if (ret) | 601 | if (ret) |
605 | goto failed; | 602 | goto failed; |
606 | 603 | ||
@@ -609,8 +606,7 @@ static int mgslpc_config(struct pcmcia_device *link) | |||
609 | 606 | ||
610 | dev_info(&link->dev, "index 0x%02x:", | 607 | dev_info(&link->dev, "index 0x%02x:", |
611 | link->config_index); | 608 | link->config_index); |
612 | if (link->conf.Attributes & CONF_ENABLE_IRQ) | 609 | printk(", irq %d", link->irq); |
613 | printk(", irq %d", link->irq); | ||
614 | if (link->resource[0]) | 610 | if (link->resource[0]) |
615 | printk(", io %pR", link->resource[0]); | 611 | printk(", io %pR", link->resource[0]); |
616 | printk("\n"); | 612 | printk("\n"); |