diff options
author | Keerthy <j-keerthy@ti.com> | 2017-07-20 12:42:17 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-14 16:03:39 +0300 |
commit | 5e7a0ce7395ad65f71cfbc47d6dd6d6b329dab84 (patch) | |
tree | 3ac063eca503734ed423a986f0002db77ff823b6 /drivers | |
parent | 792afe6323e747d3264c7d1b126c1a6216f83571 (diff) | |
download | linux-5e7a0ce7395ad65f71cfbc47d6dd6d6b329dab84.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-davinci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 3fb970a74fd7..f75d8443ecaf 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -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: |