From: Ulf Hansson Date: Mon, 25 Sep 2023 13:17:11 +0000 (+0200) Subject: OPP: Switch to use dev_pm_domain_set_performance_state() X-Git-Tag: v6.7-rc1~157^2~3^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=892c60c6b48dfada25b8cc7aad907b93c4dbff93;p=thirdparty%2Fkernel%2Flinux.git OPP: Switch to use dev_pm_domain_set_performance_state() To support performance scaling for any kinds of PM domains, let's move away from using the genpd specific API, dev_pm_genpd_set_performance_state(), to the common dev_pm_domain_set_performance_state(). No intended functional impact at this point. Signed-off-by: Ulf Hansson Signed-off-by: Viresh Kumar --- diff --git a/drivers/opp/core.c b/drivers/opp/core.c index ca8d1304b5087..60dca60ac4af8 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -1030,7 +1030,7 @@ static int _set_performance_state(struct device *dev, struct device *pd_dev, if (!pd_dev) return 0; - ret = dev_pm_genpd_set_performance_state(pd_dev, pstate); + ret = dev_pm_domain_set_performance_state(pd_dev, pstate); if (ret) { dev_err(dev, "Failed to set performance state of %s: %d (%d)\n", dev_name(pd_dev), pstate, ret);