diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-03 11:57:10 +0200 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-05-06 16:37:02 +0200 |
commit | a2071b0b449e6cb725a15932590ee5753c39d282 (patch) | |
tree | 685c0b8ed1a79d0bf4caf8d0d952482cb634fa72 /drivers/thermal/exynos_thermal.c | |
parent | Thermal: dove_thermal: Remove redundant platform_set_drvdata() (diff) | |
download | linux-a2071b0b449e6cb725a15932590ee5753c39d282.tar.xz linux-a2071b0b449e6cb725a15932590ee5753c39d282.zip |
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>
Diffstat (limited to 'drivers/thermal/exynos_thermal.c')
-rw-r--r-- | drivers/thermal/exynos_thermal.c | 3 |
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) return 0; err_clk: - platform_set_drvdata(pdev, NULL); clk_unprepare(data->clk); return ret; } @@ -1016,8 +1015,6 @@ static int exynos_tmu_remove(struct platform_device *pdev) clk_unprepare(data->clk); - platform_set_drvdata(pdev, NULL); - return 0; } |