OSDN Git Service

power: battery: Initialize work struct before cancelling work
authorUmang Chheda <uchheda@codeaurora.org>
Tue, 1 Oct 2019 10:33:39 +0000 (16:03 +0530)
committerUmang Chheda <uchheda@codeaurora.org>
Tue, 15 Oct 2019 06:24:11 +0000 (11:54 +0530)
commit666e83125bd5bcd60f63ee0038587ba7a3d87887
treec3d07e244cb2e6f26ebd2a36340bade604385c59
parenta8e92fae3a9de72877cfbd2f8b84a0d539413eb1
power: battery: Initialize work struct before cancelling work

Votable callback accesses work structure as part of
their callback, initialize work before creation of votables.

Change-Id: I91741b3d54c73aab5c695a31292a32752edc77cd
Signed-off-by: Umang Chheda <uchheda@codeaurora.org>
drivers/power/supply/qcom/battery.c