aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-09-17 22:41:05 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-09-19 07:36:20 -0400
commitda4a64481b3504a6f4f07c08ff03be8f08d9638d (patch)
treee23513207eecc9b39e37b4abb3052cc5e1fc6935
parent54dec69bb975e71db83baf82bf4043df545b204c (diff)
PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove
Current code uses devm_regulator_get() in .probe so a regulator_put() will be automatically called when unload the module. Remove the explictly regulator_put() call and then we can also remove rk3399_dmcfreq_remove(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/devfreq/rk3399_dmc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c
index 54d65f24a9fe..e24b73d66659 100644
--- a/drivers/devfreq/rk3399_dmc.c
+++ b/drivers/devfreq/rk3399_dmc.c
@@ -450,15 +450,6 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev)
450 return 0; 450 return 0;
451} 451}
452 452
453static int rk3399_dmcfreq_remove(struct platform_device *pdev)
454{
455 struct rk3399_dmcfreq *dmcfreq = platform_get_drvdata(pdev);
456
457 regulator_put(dmcfreq->vdd_center);
458
459 return 0;
460}
461
462static const struct of_device_id rk3399dmc_devfreq_of_match[] = { 453static const struct of_device_id rk3399dmc_devfreq_of_match[] = {
463 { .compatible = "rockchip,rk3399-dmc" }, 454 { .compatible = "rockchip,rk3399-dmc" },
464 { }, 455 { },
@@ -466,7 +457,6 @@ static const struct of_device_id rk3399dmc_devfreq_of_match[] = {
466 457
467static struct platform_driver rk3399_dmcfreq_driver = { 458static struct platform_driver rk3399_dmcfreq_driver = {
468 .probe = rk3399_dmcfreq_probe, 459 .probe = rk3399_dmcfreq_probe,
469 .remove = rk3399_dmcfreq_remove,
470 .driver = { 460 .driver = {
471 .name = "rk3399-dmc-freq", 461 .name = "rk3399-dmc-freq",
472 .pm = &rk3399_dmcfreq_pm, 462 .pm = &rk3399_dmcfreq_pm,