提交 a1cf1150 编写于 作者: S Sachin Kamat 提交者: Zhang Rui

Thermal: spear: Remove redundant platform_set_drvdata()

Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Cc: Vincenzo Frascino <vincenzo.frascino@st.com>
Acked-by: NEduardo Valentin <eduardo.valentin@ti.com>
Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NZhang Rui <rui.zhang@intel.com>
上级 6135ba36
...@@ -174,7 +174,6 @@ static int spear_thermal_exit(struct platform_device *pdev) ...@@ -174,7 +174,6 @@ static int spear_thermal_exit(struct platform_device *pdev)
struct spear_thermal_dev *stdev = spear_thermal->devdata; struct spear_thermal_dev *stdev = spear_thermal->devdata;
thermal_zone_device_unregister(spear_thermal); thermal_zone_device_unregister(spear_thermal);
platform_set_drvdata(pdev, NULL);
/* Disable SPEAr Thermal Sensor */ /* Disable SPEAr Thermal Sensor */
actual_mask = readl_relaxed(stdev->thermal_base); actual_mask = readl_relaxed(stdev->thermal_base);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册