Skip to content
Snippets Groups Projects
Commit c2ce4d23 authored by Chuhong Yuan's avatar Chuhong Yuan Committed by Enric Balletbo i Serra
Browse files

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: default avatarChuhong Yuan <hslester96@gmail.com>
Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
parent 379c02eb
No related branches found
No related tags found
No related merge requests found
...@@ -224,6 +224,7 @@ static int cros_usbpd_logger_remove(struct platform_device *pd) ...@@ -224,6 +224,7 @@ static int cros_usbpd_logger_remove(struct platform_device *pd)
struct logger_data *logger = platform_get_drvdata(pd); struct logger_data *logger = platform_get_drvdata(pd);
cancel_delayed_work_sync(&logger->log_work); cancel_delayed_work_sync(&logger->log_work);
destroy_workqueue(logger->log_workqueue);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment