From 5e7a0ce7395ad65f71cfbc47d6dd6d6b329dab84 Mon Sep 17 00:00:00 2001 From: Keerthy Date: Thu, 20 Jul 2017 15:12:17 +0530 Subject: 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 --- drivers/gpio/gpio-davinci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/gpio') 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: -- cgit v1.2.3