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>
This commit is contained in:
parent
792afe6323
commit
5e7a0ce739
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue