commit | 4e8df3318286e03c06b29f3b9b26370a0746b01d | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Wed Nov 28 02:17:47 2012 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Nov 28 02:17:45 2012 -0800 |
tree | 11fe57b781c34026bb2fd129cf485e58ee291c99 | |
parent | a3833c1d6d2f8d9ecece215d9b587127d164c7b8 [diff] | |
parent | f425d9aaf183612af6b0cd6f9502e870db2f7e53 [diff] |
Merge "power: pm8921-bms: use mutex even for debug entries"
diff --git a/drivers/power/pm8921-bms.c b/drivers/power/pm8921-bms.c index 703aca9..4873a9e 100644 --- a/drivers/power/pm8921-bms.c +++ b/drivers/power/pm8921-bms.c
@@ -2686,7 +2686,9 @@ int ret = 0; struct pm8921_soc_params raw; + mutex_lock(&the_chip->bms_output_lock); read_soc_params_raw(the_chip, &raw); + mutex_unlock(&the_chip->bms_output_lock); *val = 0;