Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 drivers/net/smsc911x.c
4 drivers/net/smsc911x.c
@@ -2024,8 +2024,10 @@ static int __devinit smsc911x_drv_probe(struct platform_device *pdev)
2024 2024 }
2025 2025
2026 2026 retval = smsc911x_init(dev);
2027   - if (retval < 0)
  2027 + if (retval < 0) {
  2028 + retval = -ENODEV;
2028 2029 goto out_unmap_io_3;
  2030 + }
2029 2031
2030 2032 /* configure irq polarity and type before connecting isr */
2031 2033 if (pdata->config.irq_polarity == SMSC911X_IRQ_POLARITY_ACTIVE_HIGH)

0 comments on commit 877460b

Please sign in to comment.
Something went wrong with that request. Please try again.