Commit 0f828244 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Bryan Huntsman
Browse files

power: msm_charger: fix wakelock destruction paths



The wakelock in the msm_charger is not specific to any charger. It is held
as long as any charger is charging the battery and released when not
charging or done charging.

It is not appropriate to destroy the wakelock when a charger registers or
unregisters, there could be other chargers that would need that
wakelock functional.

Destroy the wakelock only when the msm_charger is removed.

Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 9a895105
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment