platform/chrome: cros_usbpd_logger: add missed destroy_workqueue in remove
authorChuhong Yuan <hslester96@gmail.com>
Wed, 13 Nov 2019 06:38:21 +0000 (14:38 +0800)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 20 Nov 2019 16:19:57 +0000 (17:19 +0100)
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>
drivers/platform/chrome/cros_usbpd_logger.c

index 2430e8b82810d46f4d1c4e50d7e010cb6349da31..374cdd1e868ac1881ad82965cc5f7d2412ac9df8 100644 (file)
@@ -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;
 }