Skip to content

Commit 40d7f4d

Browse files
author
Ulf Hansson
committed
pmdomain: qcom: rpmpd: Drop the ->opp_to_performance_state() callback
Since commit 7c41cdc ("OPP: Simplify the over-designed pstate <-> level dance"), there is no longer any need for genpd providers to assign the ->opp_to_performance_state(), hence let's drop it. Cc: Bjorn Andersson <andersson@kernel.org> Cc: Konrad Dybcio <konrad.dybcio@linaro.org> Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20231012153558.101445-1-ulf.hansson@linaro.org
1 parent 016b4e5 commit 40d7f4d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/pmdomain/qcom/rpmpd.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -908,12 +908,6 @@ static int rpmpd_set_performance(struct generic_pm_domain *domain,
908908
return ret;
909909
}
910910

911-
static unsigned int rpmpd_get_performance(struct generic_pm_domain *genpd,
912-
struct dev_pm_opp *opp)
913-
{
914-
return dev_pm_opp_get_level(opp);
915-
}
916-
917911
static int rpmpd_probe(struct platform_device *pdev)
918912
{
919913
int i;
@@ -959,7 +953,6 @@ static int rpmpd_probe(struct platform_device *pdev)
959953
rpmpds[i]->pd.power_off = rpmpd_power_off;
960954
rpmpds[i]->pd.power_on = rpmpd_power_on;
961955
rpmpds[i]->pd.set_performance_state = rpmpd_set_performance;
962-
rpmpds[i]->pd.opp_to_performance_state = rpmpd_get_performance;
963956
pm_genpd_init(&rpmpds[i]->pd, NULL, true);
964957

965958
data->domains[i] = &rpmpds[i]->pd;

0 commit comments

Comments
 (0)