Skip to content

Commit

Permalink
thermal: exynos: fix ordering in exynos_tmu_remove()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Zhang Rui committed Jul 15, 2014
1 parent 1795cd9 commit 4215688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/thermal/samsung/exynos_tmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,10 @@ static int exynos_tmu_remove(struct platform_device *pdev)
{
struct exynos_tmu_data *data = platform_get_drvdata(pdev);

exynos_tmu_control(pdev, false);

exynos_unregister_thermal(data->reg_conf);

exynos_tmu_control(pdev, false);

clk_unprepare(data->clk);
if (!IS_ERR(data->clk_sec))
clk_unprepare(data->clk_sec);
Expand Down

0 comments on commit 4215688

Please sign in to comment.