From: Keerthy Date: Thu, 20 Jul 2017 09:42:17 +0000 (+0530) Subject: gpio: davinci: Handle the return value of davinci_gpio_irq_setup function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e7a0ce7395ad65f71cfbc47d6dd6d6b329dab84;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: davinci: Handle the return value of davinci_gpio_irq_setup function Currently davinci_gpio_irq_setup return value is ignored. Handle the return value appropriately. Signed-off-by: Keerthy Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 3fb970a74fd7..f75d8443ecaf 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -237,7 +237,10 @@ static int davinci_gpio_probe(struct platform_device *pdev) goto err; platform_set_drvdata(pdev, chips); - davinci_gpio_irq_setup(pdev); + ret = davinci_gpio_irq_setup(pdev); + if (ret) + goto err; + return 0; err: