mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
power: rk818-charger: fix cancel delayed work error because of not initialize
Change-Id: I2273c55f2ffbc5d09cf80bbfdf3030acada39eab Signed-off-by: chenjh <chenjh@rock-chips.com>
This commit is contained in:
parent
e8be46e733
commit
be4b15c304
|
|
@ -1283,9 +1283,13 @@ static void rk818_charger_shutdown(struct platform_device *pdev)
|
|||
{
|
||||
struct rk818_charger *cg = platform_get_drvdata(pdev);
|
||||
|
||||
cancel_delayed_work_sync(&cg->host_work);
|
||||
/* type-c only */
|
||||
if (cg->pdata->extcon) {
|
||||
cancel_delayed_work_sync(&cg->host_work);
|
||||
cancel_delayed_work_sync(&cg->discnt_work);
|
||||
}
|
||||
|
||||
cancel_delayed_work_sync(&cg->usb_work);
|
||||
cancel_delayed_work_sync(&cg->discnt_work);
|
||||
cancel_delayed_work_sync(&cg->dc_work);
|
||||
cancel_delayed_work_sync(&cg->finish_sig_work);
|
||||
cancel_delayed_work_sync(&cg->irq_work);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user