Commit bd59cfc5 authored by Robert Jarzmik's avatar Robert Jarzmik Committed by David S. Miller

net: smc91x: propagate irq return code

The smc91x driver doesn't honor the probe deferral mechanism when the
interrupt source is not yet available, such as one provided by a gpio
controller not probed.

Fix this by propagating the platform_get_irq() error code as the probe
return value.
Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bfb3a9df
...@@ -2342,8 +2342,8 @@ static int smc_drv_probe(struct platform_device *pdev) ...@@ -2342,8 +2342,8 @@ static int smc_drv_probe(struct platform_device *pdev)
} }
ndev->irq = platform_get_irq(pdev, 0); ndev->irq = platform_get_irq(pdev, 0);
if (ndev->irq <= 0) { if (ndev->irq < 0) {
ret = -ENODEV; ret = ndev->irq;
goto out_release_io; goto out_release_io;
} }
/* /*
......
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