forked from Minki/linux
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 <hslester96@gmail.com> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
This commit is contained in:
parent
379c02ebcc
commit
c2ce4d2329
@ -224,6 +224,7 @@ static int cros_usbpd_logger_remove(struct platform_device *pd)
|
||||
struct logger_data *logger = platform_get_drvdata(pd);
|
||||
|
||||
cancel_delayed_work_sync(&logger->log_work);
|
||||
destroy_workqueue(logger->log_workqueue);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user