Skip to content

Commit

Permalink
platform/chrome: cros_usbpd_logger: add missed destroy_workqueue in r…
Browse files Browse the repository at this point in the history
…emove

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]>
  • Loading branch information
WillLester authored and Enric Balletbo i Serra committed Nov 20, 2019
1 parent 379c02e commit c2ce4d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/platform/chrome/cros_usbpd_logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c2ce4d2

Please sign in to comment.