diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2014-07-08 09:09:56 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-07-15 10:58:32 -0400 |
commit | 4215688e7e55bcc80a0bbbc99164c261a112e4a1 (patch) | |
tree | 2394250ae6ffd92a8bc695b2d96becc03cff4af1 | |
parent | 1795cd9b3a91d4b5473c97f491d63892442212ab (diff) |
thermal: exynos: fix ordering in exynos_tmu_remove()
It might not be a problem currently but unregister/uninitialize things
in the reverse order that they are registered/initialized.
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-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); |