提交 81c12a0a 编写于 作者: S Sachin Kamat 提交者: MyungJoo Ham

PM / devfreq: Remove redundant platform_set_drvdata() in exynos5_bus.c

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>
Acked-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
上级 8ab8831a
...@@ -419,7 +419,6 @@ static int exynos5_busfreq_int_probe(struct platform_device *pdev) ...@@ -419,7 +419,6 @@ static int exynos5_busfreq_int_probe(struct platform_device *pdev)
err_devfreq_add: err_devfreq_add:
devfreq_remove_device(data->devfreq); devfreq_remove_device(data->devfreq);
platform_set_drvdata(pdev, NULL);
err_opp_add: err_opp_add:
clk_put(data->int_clk); clk_put(data->int_clk);
err_clock: err_clock:
...@@ -437,7 +436,6 @@ static int exynos5_busfreq_int_remove(struct platform_device *pdev) ...@@ -437,7 +436,6 @@ static int exynos5_busfreq_int_remove(struct platform_device *pdev)
devfreq_remove_device(data->devfreq); devfreq_remove_device(data->devfreq);
regulator_put(data->vdd_int); regulator_put(data->vdd_int);
clk_put(data->int_clk); clk_put(data->int_clk);
platform_set_drvdata(pdev, NULL);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册