diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-08-28 16:55:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-28 22:25:42 -0700 |
commit | f375339e497582ea0bc8806a0552add1cabb6d4e (patch) | |
tree | fe1d0cb4be4277273223e8c4acf36d146b7d8c11 | |
parent | 7c5a9461812b21e1a1b7a09a83e97530b8867459 (diff) | |
download | linux-stable-f375339e497582ea0bc8806a0552add1cabb6d4e.tar.gz linux-stable-f375339e497582ea0bc8806a0552add1cabb6d4e.tar.bz2 linux-stable-f375339e497582ea0bc8806a0552add1cabb6d4e.zip |
ravb: 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>
-rw-r--r-- | drivers/net/ethernet/renesas/ravb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 78849dd4ef8e..44b37141d125 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -1643,7 +1643,7 @@ static int ravb_probe(struct platform_device *pdev) ndev->dma = -1; irq = platform_get_irq(pdev, 0); if (irq < 0) { - error = -ENODEV; + error = irq; goto out_release; } ndev->irq = irq; |