diff options
author | Jinyoung Park <jinyoungp@nvidia.com> | 2014-05-29 02:58:13 +0900 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-29 12:37:02 -0700 |
commit | cb140feb445ff6dce4984bed527eca56191180a8 (patch) | |
tree | e619c9ecdfdbed3be33507116138ba248cc588c4 /drivers/misc | |
parent | d587035a252ca5c579db4ad8fad1756259a2566c (diff) |
misc: therm_est: Unregister tz and cdev in shutdown
Unregister thermal zone and cooling device in shutdown callback to prevent
unwanted thermal operating while shutdown processing.
Bug 1515432
Change-Id: I49a13618f7b8f8d5b55a8e960676e7357891fe89
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/416278
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'drivers/misc')
-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 = { |