Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Signed-off-by: Steve Sakoman <sakoman@gmail.com>
  • Loading branch information...
commit 877460be14abef07c031c64e1bf29f14ed61ec95 1 parent 63366f6
Steve Sakoman authored sakoman committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 drivers/net/smsc911x.c
4 drivers/net/smsc911x.c
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.