Commit 4c53beab authored by Zhenhua Huang's avatar Zhenhua Huang
Browse files

power: qpnp-linear-charger: avoid mutex_lock in atomic context



Spin_lock_irqsave function called in get_prop_capacity() introduces
an atomic context. A mutex_lock is called in the context and this
results a warning message. Use mutex instead of spin_lock to avoid
this condition.

CRs-Fixed: 655107
Change-Id: I8098f74bb6888f4cb514199c5636d3fc6cede91d
Signed-off-by: default avatarZhenhua Huang <zhenhuah@codeaurora.org>
parent f50bd593
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment