projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b6706
)
generic-adc-battery: Fix checking return value of request_any_context_irq
author
Axel Lin
<axel.lin@ingics.com>
Fri, 16 Nov 2012 09:09:22 +0000
(17:09 +0800)
committer
Anton Vorontsov
<anton.vorontsov@linaro.org>
Fri, 16 Nov 2012 09:46:42 +0000
(
01:46
-0800)
On failure, request_any_context_irq() returns a negative value. On
success, it returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/generic-adc-battery.c
patch
|
blob
|
history
diff --git
a/drivers/power/generic-adc-battery.c
b/drivers/power/generic-adc-battery.c
index 9bdf4447039630f7d2f3f419279d485a33fd1d9d..4a00ef7a8795ae6da3ada89e32847f3456ef274a 100644
(file)
--- a/
drivers/power/generic-adc-battery.c
+++ b/
drivers/power/generic-adc-battery.c
@@
-327,7
+327,7
@@
static int __devinit gab_probe(struct platform_device *pdev)
ret = request_any_context_irq(irq, gab_charged,
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
"battery charged", adc_bat);
- if (ret)
+ if (ret
< 0
)
goto err_gpio;
}