generic-adc-battery: Fix checking return value of request_any_context_irq
authorAxel Lin <axel.lin@ingics.com>
Fri, 16 Nov 2012 09:09:22 +0000 (17:09 +0800)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Fri, 16 Nov 2012 09:46:42 +0000 (01:46 -0800)
commita5af092245a33965a4b089e8ba489c2db0f7db16
tree11cf8e6b361616298cf42a0d8f31efa6eaab6dc3
parent77b67063bb6bce6d475e910d3b886a606d0d91f7
generic-adc-battery: Fix checking return value of request_any_context_irq

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