From ffe31c9ed35d70069ee76d6b6d41ac86a17d7a07 Mon Sep 17 00:00:00 2001 From: Lad Prabhakar Date: Tue, 4 Jan 2022 15:36:15 +0000 Subject: [PATCH] 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: Andy Shevchenko Signed-off-by: Lad Prabhakar Reviewed-by: Andy Shevchenko Reviewed-by: Sergey Shtylyov Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-rcar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 437baec..bd2e16d 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -552,10 +552,10 @@ static int gpio_rcar_probe(struct platform_device *pdev) goto err0; } - if (devm_request_irq(dev, p->irq_parent, gpio_rcar_irq_handler, - IRQF_SHARED, name, p)) { + ret = devm_request_irq(dev, p->irq_parent, gpio_rcar_irq_handler, + IRQF_SHARED, name, p); + if (ret) { dev_err(dev, "failed to request IRQ\n"); - ret = -ENOENT; goto err1; } -- 2.7.4