summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-13 09:38:21 +0300
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-11-20 19:19:57 +0300
commitc2ce4d23299fc8c40d5f20f2536eb56838c27762 (patch)
tree27514b7bf2c42943702ad370fdc1385979cda38a /drivers/platform
parent379c02ebcc9a30d1697923c10628ca32283675ff (diff)
downloadlinux-c2ce4d23299fc8c40d5f20f2536eb56838c27762.tar.xz
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/chrome/cros_usbpd_logger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_usbpd_logger.c b/drivers/platform/chrome/cros_usbpd_logger.c
index 2430e8b82810..374cdd1e868a 100644
--- a/drivers/platform/chrome/cros_usbpd_logger.c
+++ b/drivers/platform/chrome/cros_usbpd_logger.c
@@ -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;
}