Commit ffe31c9e authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Bartosz Golaszewski

gpio: rcar: Propagate errors from devm_request_irq()

The driver overrides the error code returned by devm_request_irq() to
-ENOENT. Switch to propagating the error code upstream.
Suggested-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent f1ff272c
...@@ -552,10 +552,10 @@ static int gpio_rcar_probe(struct platform_device *pdev) ...@@ -552,10 +552,10 @@ static int gpio_rcar_probe(struct platform_device *pdev)
goto err0; goto err0;
} }
if (devm_request_irq(dev, p->irq_parent, gpio_rcar_irq_handler, ret = devm_request_irq(dev, p->irq_parent, gpio_rcar_irq_handler,
IRQF_SHARED, name, p)) { IRQF_SHARED, name, p);
if (ret) {
dev_err(dev, "failed to request IRQ\n"); dev_err(dev, "failed to request IRQ\n");
ret = -ENOENT;
goto err1; goto err1;
} }
......
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