projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daa68a5
)
Thermal: exynos: Remove redundant platform_set_drvdata()
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 3 May 2013 09:57:10 +0000
(09:57 +0000)
committer
Chanho Park
<chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:05 +0000
(11:45 +0900)
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>
drivers/thermal/exynos_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/exynos_thermal.c
b/drivers/thermal/exynos_thermal.c
index
788b1dd
..
03e4bbc
100644
(file)
--- a/
drivers/thermal/exynos_thermal.c
+++ b/
drivers/thermal/exynos_thermal.c
@@
-996,7
+996,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;
}
@@
-1011,8
+1010,6
@@
static int exynos_tmu_remove(struct platform_device *pdev)
clk_unprepare(data->clk);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}