aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-03 05:57:10 -0400
committerZhang Rui <rui.zhang@intel.com>2013-05-06 10:37:02 -0400
commita2071b0b449e6cb725a15932590ee5753c39d282 (patch)
tree685c0b8ed1a79d0bf4caf8d0d952482cb634fa72
parentaa50c4e49c650692559e2da1f5b49a145098ba71 (diff)
Thermal: exynos: Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r--drivers/thermal/exynos_thermal.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c
index d20ce9e61403..992ae6e25112 100644
--- a/drivers/thermal/exynos_thermal.c
+++ b/drivers/thermal/exynos_thermal.c
@@ -1001,7 +1001,6 @@ static int exynos_tmu_probe(struct platform_device *pdev)
1001 1001
1002 return 0; 1002 return 0;
1003err_clk: 1003err_clk:
1004 platform_set_drvdata(pdev, NULL);
1005 clk_unprepare(data->clk); 1004 clk_unprepare(data->clk);
1006 return ret; 1005 return ret;
1007} 1006}
@@ -1016,8 +1015,6 @@ static int exynos_tmu_remove(struct platform_device *pdev)
1016 1015
1017 clk_unprepare(data->clk); 1016 clk_unprepare(data->clk);
1018 1017
1019 platform_set_drvdata(pdev, NULL);
1020
1021 return 0; 1018 return 0;
1022} 1019}
1023 1020