Permalink
Browse files

drivers: net: smsc911x: return ENODEV if device is not found

Signed-off-by: Steve Sakoman <sakoman@gmail.com>
  • Loading branch information...
1 parent 63366f6 commit 877460be14abef07c031c64e1bf29f14ed61ec95 Steve Sakoman committed with sakoman Dec 15, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 drivers/net/smsc911x.c
View
4 drivers/net/smsc911x.c
@@ -2024,8 +2024,10 @@ static int __devinit smsc911x_drv_probe(struct platform_device *pdev)
}
retval = smsc911x_init(dev);
- if (retval < 0)
+ if (retval < 0) {
+ retval = -ENODEV;
goto out_unmap_io_3;
+ }
/* configure irq polarity and type before connecting isr */
if (pdata->config.irq_polarity == SMSC911X_IRQ_POLARITY_ACTIVE_HIGH)

0 comments on commit 877460b

Please sign in to comment.