diff options
Diffstat (limited to 'drivers/net/3c515.c')
-rw-r--r-- | drivers/net/3c515.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/3c515.c b/drivers/net/3c515.c index 105a8c7ca7e9..e4e3241628d6 100644 --- a/drivers/net/3c515.c +++ b/drivers/net/3c515.c | |||
@@ -572,12 +572,16 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr, | |||
572 | int irq; | 572 | int irq; |
573 | DECLARE_MAC_BUF(mac); | 573 | DECLARE_MAC_BUF(mac); |
574 | 574 | ||
575 | #ifdef __ISAPNP__ | ||
575 | if (idev) { | 576 | if (idev) { |
576 | irq = pnp_irq(idev, 0); | 577 | irq = pnp_irq(idev, 0); |
577 | vp->dev = &idev->dev; | 578 | vp->dev = &idev->dev; |
578 | } else { | 579 | } else { |
579 | irq = inw(ioaddr + 0x2002) & 15; | 580 | irq = inw(ioaddr + 0x2002) & 15; |
580 | } | 581 | } |
582 | #else | ||
583 | irq = inw(ioaddr + 0x2002) & 15; | ||
584 | #endif | ||
581 | 585 | ||
582 | dev->base_addr = ioaddr; | 586 | dev->base_addr = ioaddr; |
583 | dev->irq = irq; | 587 | dev->irq = irq; |