Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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: