1
0
Fork 0

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 <j-keerthy@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
hifive-unleashed-5.1
Keerthy 2017-07-20 15:12:17 +05:30 committed by Linus Walleij
parent 792afe6323
commit 5e7a0ce739
1 changed files with 4 additions and 1 deletions

View File

@ -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: