diff options
-rw-r--r-- | drivers/misc/therm_est.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/therm_est.c b/drivers/misc/therm_est.c index 7c47658bde9c..48f5786e6563 100644 --- a/drivers/misc/therm_est.c +++ b/drivers/misc/therm_est.c @@ -885,6 +885,8 @@ static void therm_est_shutdown(struct platform_device *pdev) cancel_delayed_work_sync(&est->therm_est_work); cancel_delayed_work_sync(&est->timer_trip_work); + thermal_zone_device_unregister(est->thz); + thermal_cooling_device_unregister(est->cdev); } static struct platform_driver therm_est_driver = { |