]> Git Repo - linux.git/commitdiff
platform/chrome: cros_usbpd_logger: add missed destroy_workqueue in remove
authorChuhong Yuan <[email protected]>
Wed, 13 Nov 2019 06:38:21 +0000 (14:38 +0800)
committerEnric Balletbo i Serra <[email protected]>
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 <[email protected]>
Signed-off-by: Enric Balletbo i Serra <[email protected]>
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;
 }
This page took 0.061483 seconds and 4 git commands to generate.