aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/ab8500_fg.c
diff options
context:
space:
mode:
authorRickard Andersson <rickard.andersson@stericsson.com>2013-01-11 08:12:55 -0500
committerAnton Vorontsov <anton@enomsg.org>2013-01-15 20:44:26 -0500
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 76fab6b5c541..d2d14ea681a4 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)
745 dev_dbg(di->dev, "%s instant current: %d", __func__, res); 745 dev_dbg(di->dev, "%s instant current: %d", __func__, res);
746 return res; 746 return res;
747fail: 747fail:
748 disable_irq(di->irq);
748 mutex_unlock(&di->cc_lock); 749 mutex_unlock(&di->cc_lock);
749 return ret; 750 return ret;
750} 751}