forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/power/supply/da9150-charger.c
....@@ -662,6 +662,7 @@
662662
663663 if (!IS_ERR_OR_NULL(charger->usb_phy))
664664 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb);
665
+ cancel_work_sync(&charger->otg_work);
665666
666667 power_supply_unregister(charger->battery);
667668 power_supply_unregister(charger->usb);