]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blobdiff - drivers/misc/therm_est.c
misc: therm_est: Unregister tz and cdev in shutdown
[sojka/nv-tegra/linux-3.10.git] / drivers / misc / therm_est.c
index 7c47658bde9c688a0c9651a3286c73f344c4fbdd..48f5786e65632e7d6bff070ceb8494d341aa55f9 100644 (file)
@@ -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 = {