提交 5e7a0ce7 编写于 作者: K Keerthy 提交者: 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: NKeerthy <j-keerthy@ti.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 792afe63
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册