OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
792afe6
)
gpio: davinci: Handle the return value of davinci_gpio_irq_setup function
author
Keerthy
<j-keerthy@ti.com>
Thu, 20 Jul 2017 09:42:17 +0000
(15:12 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:03:39 +0000
(15:03 +0200)
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>
drivers/gpio/gpio-davinci.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-davinci.c
b/drivers/gpio/gpio-davinci.c
index
3fb970a
..
f75d844
100644
(file)
--- 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: