commit | 614152e3cd1f03726b175c896d0ff69525694239 | [log] [tgz] |
---|---|---|
author | Kiran Gunda <kgunda@codeaurora.org> | Tue Aug 14 11:50:40 2018 +0530 |
committer | Kiran Gunda <kgunda@codeaurora.org> | Fri Aug 17 12:30:25 2018 +0530 |
tree | e3364679afe4e0b5ea54be34ecf57f24b665d9cb | |
parent | e96b6e71c2e5a01294bced335e8a510b201f0af6 [diff] |
leds: qpnp-flash-v2: Acquire the bms_psy handle at runtime Un-registering the power_supply notifier in its callback leads to a "sleeping function from a invalid context" issue. Also, there is no need to register for a power_supply notifier for the bms_psy handle. Acquire this handle runtime, this also fixes the sleeping-context issue. Change-Id: I7c98446d88be3d2231ab30b53eebc0660e66b016 Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>