sh_eth: propagate platform_get_irq() error upstream
The driver overrides the error returned by platform_get_irq() with -ENODEV which e.g. precludes the deferred probing from working. Propagate the real error code to the driver core instead. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f375339e49
commit
7a468ac624
|
@ -3089,10 +3089,8 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
|
|||
|
||||
ndev->dma = -1;
|
||||
ret = platform_get_irq(pdev, 0);
|
||||
if (ret < 0) {
|
||||
ret = -ENODEV;
|
||||
if (ret < 0)
|
||||
goto out_release;
|
||||
}
|
||||
ndev->irq = ret;
|
||||
|
||||
SET_NETDEV_DEV(ndev, &pdev->dev);
|
||||
|
|
Loading…
Reference in New Issue