projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea80e4
)
gpio: mvebu: Do not hard code error code
author
Sachin Kamat
<sachin.kamat@linaro.org>
Sat, 21 Dec 2013 07:35:58 +0000
(13:05 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 2 Jan 2014 12:57:10 +0000
(13:57 +0100)
Return the appropriate error code instead of hardcoding it.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-mvebu.c
b/drivers/gpio/gpio-mvebu.c
index bc78a9da5502cab222aabe252b638641c4de2fca..3b1fd1ce460f258fb0151550f5cb30b1260b4e62 100644
(file)
--- a/
drivers/gpio/gpio-mvebu.c
+++ b/
drivers/gpio/gpio-mvebu.c
@@
-676,7
+676,7
@@
static int mvebu_gpio_probe(struct platform_device *pdev)
mvchip->irqbase = irq_alloc_descs(-1, 0, ngpios, -1);
if (mvchip->irqbase < 0) {
dev_err(&pdev->dev, "no irqs\n");
- return
-ENOMEM
;
+ return
mvchip->irqbase
;
}
gc = irq_alloc_generic_chip("mvebu_gpio_irq", 2, mvchip->irqbase,