power: smb23x-charger: Remove wakeup source if probe failed
The wakeup source need to be removed from the wakeup_sources list if the
driver probe failed, to prevent wakeup source trash reference and
causing unexpected behavior.
While at it, fix few coding style issues.
Change-Id: Idc4a9041f22c820586495c57c2ae6229ff3fbb57
Signed-off-by:
Fenglin Wu <fenglinw@codeaurora.org>
Loading
Please register or sign in to comment