Skip to content

Commit c2ce4d2

Browse files
WillLesterEnric Balletbo i Serra
authored andcommitted
platform/chrome: cros_usbpd_logger: add missed destroy_workqueue in remove
The driver forgets to destroy workqueue in remove. Add the missed call to fix it. Signed-off-by: Chuhong Yuan <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]>
1 parent 379c02e commit c2ce4d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/chrome/cros_usbpd_logger.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ static int cros_usbpd_logger_remove(struct platform_device *pd)
224224
struct logger_data *logger = platform_get_drvdata(pd);
225225

226226
cancel_delayed_work_sync(&logger->log_work);
227+
destroy_workqueue(logger->log_workqueue);
227228

228229
return 0;
229230
}

0 commit comments

Comments
 (0)