diff options
| author | Keerthy <[email protected]> | 2017-07-20 09:42:17 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2017-08-14 13:03:39 +0000 |
| commit | 5e7a0ce7395ad65f71cfbc47d6dd6d6b329dab84 (patch) | |
| tree | 3ac063eca503734ed423a986f0002db77ff823b6 /drivers/gpio/gpio-davinci.c | |
| parent | dt-bindings: gpio: davinci: Add keystone-k2g compatible (diff) | |
| download | kernel-5e7a0ce7395ad65f71cfbc47d6dd6d6b329dab84.tar.gz kernel-5e7a0ce7395ad65f71cfbc47d6dd6d6b329dab84.zip | |
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 <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
| -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: |
