sc760x: Relax wakelock

In charger_detect_work_func,
Make sure that relax wakelock

Change-Id: I089247f8b94c73d76cdf442d79fa2eae7fa63de0
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2789606
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xuwt2 2023-11-08 17:35:26 +08:00 • committed by Wentao Xu
commit 48c39ff2fc

View file

@ -1432,11 +1432,6 @@ static void charger_detect_work_func(struct work_struct *work)
goto err;
}
if (state_changed) {
sc760x_dump_reg(sc);
power_supply_changed(sc->charger_psy);
}
return;
err:
//release wakelock
if (state_changed)