Commit 5e7a0ce7 authored by Keerthy's avatar Keerthy Committed by Linus Walleij

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: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 792afe63
...@@ -237,7 +237,10 @@ static int davinci_gpio_probe(struct platform_device *pdev) ...@@ -237,7 +237,10 @@ static int davinci_gpio_probe(struct platform_device *pdev)
goto err; goto err;
platform_set_drvdata(pdev, chips); platform_set_drvdata(pdev, chips);
davinci_gpio_irq_setup(pdev); ret = davinci_gpio_irq_setup(pdev);
if (ret)
goto err;
return 0; return 0;
err: err:
......
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