Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ab6c050 authored by Fenglin Wu's avatar Fenglin Wu Committed by Gerrit - the friendly Code Review server
Browse files

power: smb1360-charger-fg: Adjust the probe code sequence



Currently, wakeup source is inititalized before the real hardware being
probed. If the driver is enabled but no real hardware connected, the
driver will probe failed but the wakeup source doesn't get removed from
the wakeup_sources list. This trash wakeup source would be referenced
somewhere and cause unexpected behavior.

Adjust the probe code sequence to detect the real hardware before
requesting other resources, and make sure the wakeup source and the
mutex could be trashed if any probe failures.

Change-Id: I43e26e14e00e65ae7b6e16177e0af948dc0fe256
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 18028711
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment