aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/opp/core.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-11-18 15:47:46 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2018-05-09 10:15:20 +0530
commit3ba98324e81addf5a1089ffc981e3e2b1630b2a7 (patch)
treed7b9587545bf453c54af71360cb33db37b712794 /drivers/opp/core.c
parentPM / Domain: Implement of_genpd_opp_to_performance_state() (diff)
downloadlinux-dev-3ba98324e81addf5a1089ffc981e3e2b1630b2a7.tar.xz
linux-dev-3ba98324e81addf5a1089ffc981e3e2b1630b2a7.zip
PM / OPP: Get performance state using genpd helper
The genpd core provides an API now to retrieve the performance state from DT, use that instead of the ->get_pstate() callback. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/opp/core.c')
-rw-r--r--drivers/opp/core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 416f54ba7a26..e4ec30ee1493 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -1056,9 +1056,6 @@ int _opp_add(struct device *dev, struct dev_pm_opp *new_opp,
}
}
- if (opp_table->get_pstate)
- new_opp->pstate = opp_table->get_pstate(dev, new_opp->rate);
-
list_add(&new_opp->node, head);
mutex_unlock(&opp_table->lock);