diff options
author | Sri Krishna chowdary <schowdary@nvidia.com> | 2013-09-10 05:01:40 -0400 |
---|---|---|
committer | Nicolin Chen <nicolinc@nvidia.com> | 2017-08-14 21:38:52 -0400 |
commit | 4f7ddd30b5a6f4a72e731167be0392a49dfed64e (patch) | |
tree | d1f100af9077ccab8a35b63ca3a6a47153a04acf /drivers/misc | |
parent | 3f30e914a09ae6f257e354f13f72764b0c318c69 (diff) |
drivers: misc: therm_est: remove shutdown function
Bug 1332127
Change-Id: Idad3bb293e972718485af932ff3e88e1fd5c4250
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/272440
(cherry picked from commit a2b0ae56425c0bd73e83559323e79e0a234d52cd)
Reviewed-on: http://git-master/r/278891
(cherry picked from commit 3de10e2e3e1dcb8ff405471ea42a0366bd238f82)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/therm_est.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/misc/therm_est.c b/drivers/misc/therm_est.c index 75f43785b..d17b05325 100644 --- a/drivers/misc/therm_est.c +++ b/drivers/misc/therm_est.c | |||
@@ -793,25 +793,6 @@ static int therm_est_remove(struct platform_device *pdev) | |||
793 | return 0; | 793 | return 0; |
794 | } | 794 | } |
795 | 795 | ||
796 | static void therm_est_shutdown(struct platform_device *pdev) | ||
797 | { | ||
798 | |||
799 | struct therm_estimator *est = platform_get_drvdata(pdev); | ||
800 | int i; | ||
801 | |||
802 | cancel_delayed_work(&est->therm_est_work); | ||
803 | cancel_delayed_work_sync(&est->timer_trip_work); | ||
804 | |||
805 | #ifdef CONFIG_PM | ||
806 | unregister_pm_notifier(&est->pm_nb); | ||
807 | #endif | ||
808 | for (i = 0; i < ARRAY_SIZE(therm_est_nodes); i++) | ||
809 | device_remove_file(&pdev->dev, &therm_est_nodes[i].dev_attr); | ||
810 | thermal_zone_device_unregister(est->thz); | ||
811 | kfree(est->thz); | ||
812 | est->thz = NULL; | ||
813 | } | ||
814 | |||
815 | static struct platform_driver therm_est_driver = { | 796 | static struct platform_driver therm_est_driver = { |
816 | .driver = { | 797 | .driver = { |
817 | .owner = THIS_MODULE, | 798 | .owner = THIS_MODULE, |
@@ -819,7 +800,6 @@ static struct platform_driver therm_est_driver = { | |||
819 | }, | 800 | }, |
820 | .probe = therm_est_probe, | 801 | .probe = therm_est_probe, |
821 | .remove = therm_est_remove, | 802 | .remove = therm_est_remove, |
822 | .shutdown = therm_est_shutdown, | ||
823 | }; | 803 | }; |
824 | 804 | ||
825 | static int __init therm_est_driver_init(void) | 805 | static int __init therm_est_driver_init(void) |