diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-11-18 15:47:46 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2018-05-09 10:15:20 +0530 |
commit | 3ba98324e81addf5a1089ffc981e3e2b1630b2a7 (patch) | |
tree | d7b9587545bf453c54af71360cb33db37b712794 /drivers/opp/core.c | |
parent | 6e41766a6a504b605a105cc5ab8d276ea20052ba (diff) | |
download | talos-obmc-linux-3ba98324e81addf5a1089ffc981e3e2b1630b2a7.tar.gz talos-obmc-linux-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.c | 3 |
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); |