diff options
-rw-r--r-- | drivers/thermal/samsung/exynos_tmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index d7ca9f49c9cb..6243ba03dbb4 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c | |||
@@ -759,10 +759,10 @@ static int exynos_tmu_remove(struct platform_device *pdev) | |||
759 | { | 759 | { |
760 | struct exynos_tmu_data *data = platform_get_drvdata(pdev); | 760 | struct exynos_tmu_data *data = platform_get_drvdata(pdev); |
761 | 761 | ||
762 | exynos_tmu_control(pdev, false); | ||
763 | |||
764 | exynos_unregister_thermal(data->reg_conf); | 762 | exynos_unregister_thermal(data->reg_conf); |
765 | 763 | ||
764 | exynos_tmu_control(pdev, false); | ||
765 | |||
766 | clk_unprepare(data->clk); | 766 | clk_unprepare(data->clk); |
767 | if (!IS_ERR(data->clk_sec)) | 767 | if (!IS_ERR(data->clk_sec)) |
768 | clk_unprepare(data->clk_sec); | 768 | clk_unprepare(data->clk_sec); |