Commit 129d583b authored by Rickard Andersson's avatar Rickard Andersson Committed by Anton Vorontsov

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: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarRickard Andersson <rickard.andersson@stericsson.com>
Reviewed-by: default avatarJonas ABERG <jonas.aberg@stericsson.com>
Signed-off-by: default avatarAnton Vorontsov <anton@enomsg.org>
parent ea402401
...@@ -745,6 +745,7 @@ int ab8500_fg_inst_curr_blocking(struct ab8500_fg *di) ...@@ -745,6 +745,7 @@ int ab8500_fg_inst_curr_blocking(struct ab8500_fg *di)
dev_dbg(di->dev, "%s instant current: %d", __func__, res); dev_dbg(di->dev, "%s instant current: %d", __func__, res);
return res; return res;
fail: fail:
disable_irq(di->irq);
mutex_unlock(&di->cc_lock); mutex_unlock(&di->cc_lock);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment