Commit 569b7892 authored by Mark Brown's avatar Mark Brown Committed by David S. Miller

cs89x0: Always report failure to request interrupt

A failure on request_irq() is always fatal but unlike other fatal
errors it's only reported to the user if net_debug is set. Make the
diagnostic unconditional and raise the priority so that errors are
more obvious to the user.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8a5c9c49
...@@ -1325,8 +1325,7 @@ net_open(struct net_device *dev) ...@@ -1325,8 +1325,7 @@ net_open(struct net_device *dev)
write_irq(dev, lp->chip_type, dev->irq); write_irq(dev, lp->chip_type, dev->irq);
ret = request_irq(dev->irq, net_interrupt, 0, dev->name, dev); ret = request_irq(dev->irq, net_interrupt, 0, dev->name, dev);
if (ret) { if (ret) {
if (net_debug) printk(KERN_ERR "cs89x0: request_irq(%d) failed\n", dev->irq);
printk(KERN_DEBUG "cs89x0: request_irq(%d) failed\n", dev->irq);
goto bad_out; goto bad_out;
} }
} }
......
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