summaryrefslogtreecommitdiffstats
path: root/drivers/power/ab8500_fg.c
diff options
context:
space:
mode:
authorRickard Andersson <rickard.andersson@stericsson.com>2013-01-11 13:12:55 +0000
committerAnton Vorontsov <anton@enomsg.org>2013-01-15 17:44:26 -0800
commit129d583b4432375a9559708882172320e4c8fb94 (patch)
treeac2ce8807cabff6d772a655325c2d33e52cb2787 /drivers/power/ab8500_fg.c
parentea4024017831d61874351defe8f8c58ae73f8009 (diff)
ab8500_fg: Balance IRQ enable
In case of time out error IRQ needs to be disabled otherwise we will get unbalanced enable/disable pairs. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Rickard Andersson <rickard.andersson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/ab8500_fg.c')
-rw-r--r--drivers/power/ab8500_fg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c
index 76fab6b5c54..d2d14ea681a 100644
--- a/drivers/power/ab8500_fg.c
+++ b/drivers/power/ab8500_fg.c
@@ -745,6 +745,7 @@ int ab8500_fg_inst_curr_blocking(struct ab8500_fg *di)
dev_dbg(di->dev, "%s instant current: %d", __func__, res);
return res;
fail:
+ disable_irq(di->irq);
mutex_unlock(&di->cc_lock);
return ret;
}