Commit 38454db3 authored by Finn Thain's avatar Finn Thain Committed by David S. Miller

mac8390: propagate error code from request_irq

Use the request_irq() error code as the return value for mac8390_open().
EAGAIN doesn't make sense for Nubus slot IRQs. Only this driver can claim
this IRQ (until the NIC is removed, which means everything is powered
down).
Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c1f8fc57
...@@ -641,12 +641,13 @@ static int __init mac8390_initdev(struct net_device *dev, ...@@ -641,12 +641,13 @@ static int __init mac8390_initdev(struct net_device *dev,
static int mac8390_open(struct net_device *dev) static int mac8390_open(struct net_device *dev)
{ {
int err;
__ei_open(dev); __ei_open(dev);
if (request_irq(dev->irq, __ei_interrupt, 0, "8390 Ethernet", dev)) { err = request_irq(dev->irq, __ei_interrupt, 0, "8390 Ethernet", dev);
pr_info("%s: unable to get IRQ %d.\n", dev->name, dev->irq); if (err)
return -EAGAIN; pr_info("%s: unable to get IRQ %d\n", dev->name, dev->irq);
} return err;
return 0;
} }
static int mac8390_close(struct net_device *dev) static int mac8390_close(struct net_device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment