projects
/
GitHub
/
LineageOS
/
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:
1a54b7d
)
mfd: ucb1x00-core: Fix error return code in ucb1x00_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Wed, 11 Sep 2013 11:20:37 +0000
(19:20 +0800)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 23 Oct 2013 15:20:49 +0000
(16:20 +0100)
Fix to return a negative error code in the irq alloc error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ucb1x00-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/ucb1x00-core.c
b/drivers/mfd/ucb1x00-core.c
index d5966e6b5a7d8058a9ff37f15a86204ffe6ffe6c..0313f839e8fadc32228b9c892edb31a449b53ace 100644
(file)
--- a/
drivers/mfd/ucb1x00-core.c
+++ b/
drivers/mfd/ucb1x00-core.c
@@
-553,6
+553,7
@@
static int ucb1x00_probe(struct mcp *mcp)
if (ucb->irq_base < 0) {
dev_err(&ucb->dev, "unable to allocate 16 irqs: %d\n",
ucb->irq_base);
+ ret = ucb->irq_base;
goto err_irq_alloc;
}