diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-03 05:57:13 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-05-06 10:37:32 -0400 |
commit | a1cf1150f127f78783f86c695f10337391fc8092 (patch) | |
tree | e60a4e3ad967ee006c3a93b06d92d6e4b2fff25f | |
parent | 6135ba36f44069ad789bd9f8d6a75eebc3946eba (diff) |
Thermal: spear: 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>
Cc: Vincenzo Frascino <vincenzo.frascino@st.com>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | drivers/thermal/spear_thermal.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c index 3c5ee5607977..1a14eaa1bbd7 100644 --- a/drivers/thermal/spear_thermal.c +++ b/drivers/thermal/spear_thermal.c | |||
@@ -174,7 +174,6 @@ static int spear_thermal_exit(struct platform_device *pdev) | |||
174 | struct spear_thermal_dev *stdev = spear_thermal->devdata; | 174 | struct spear_thermal_dev *stdev = spear_thermal->devdata; |
175 | 175 | ||
176 | thermal_zone_device_unregister(spear_thermal); | 176 | thermal_zone_device_unregister(spear_thermal); |
177 | platform_set_drvdata(pdev, NULL); | ||
178 | 177 | ||
179 | /* Disable SPEAr Thermal Sensor */ | 178 | /* Disable SPEAr Thermal Sensor */ |
180 | actual_mask = readl_relaxed(stdev->thermal_base); | 179 | actual_mask = readl_relaxed(stdev->thermal_base); |