aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/pcnet_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/pcnet_cs.c')
-rw-r--r--drivers/net/pcmcia/pcnet_cs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c
index 4c0368de1815..af09be487577 100644
--- a/drivers/net/pcmcia/pcnet_cs.c
+++ b/drivers/net/pcmcia/pcnet_cs.c
@@ -264,7 +264,6 @@ static int pcnet_probe(struct pcmcia_device *link)
264 info->p_dev = link; 264 info->p_dev = link;
265 link->priv = dev; 265 link->priv = dev;
266 266
267 link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
268 link->conf.Attributes = CONF_ENABLE_IRQ; 267 link->conf.Attributes = CONF_ENABLE_IRQ;
269 link->conf.IntType = INT_MEMORY_AND_IO; 268 link->conf.IntType = INT_MEMORY_AND_IO;
270 269
@@ -488,8 +487,6 @@ static int try_io_port(struct pcmcia_device *link)
488 if (link->io.NumPorts2 > 0) { 487 if (link->io.NumPorts2 > 0) {
489 /* for master/slave multifunction cards */ 488 /* for master/slave multifunction cards */
490 link->io.Attributes2 = IO_DATA_PATH_WIDTH_8; 489 link->io.Attributes2 = IO_DATA_PATH_WIDTH_8;
491 link->irq.Attributes =
492 IRQ_TYPE_DYNAMIC_SHARING;
493 } 490 }
494 } else { 491 } else {
495 /* This should be two 16-port windows */ 492 /* This should be two 16-port windows */
@@ -559,8 +556,7 @@ static int pcnet_config(struct pcmcia_device *link)
559 if (ret) 556 if (ret)
560 goto failed; 557 goto failed;
561 558
562 ret = pcmcia_request_irq(link, &link->irq); 559 if (!link->irq)
563 if (ret)
564 goto failed; 560 goto failed;
565 561
566 if (link->io.NumPorts2 == 8) { 562 if (link->io.NumPorts2 == 8) {
@@ -574,7 +570,7 @@ static int pcnet_config(struct pcmcia_device *link)
574 ret = pcmcia_request_configuration(link, &link->conf); 570 ret = pcmcia_request_configuration(link, &link->conf);
575 if (ret) 571 if (ret)
576 goto failed; 572 goto failed;
577 dev->irq = link->irq.AssignedIRQ; 573 dev->irq = link->irq;
578 dev->base_addr = link->io.BasePort1; 574 dev->base_addr = link->io.BasePort1;
579 if (info->flags & HAS_MISC_REG) { 575 if (info->flags & HAS_MISC_REG) {
580 if ((if_port == 1) || (if_port == 2)) 576 if ((if_port == 1) || (if_port == 2))