summaryrefslogtreecommitdiff
path: root/drivers/opp/ti-opp-supply.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2022-05-26 07:06:27 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2022-07-08 08:57:49 +0300
commit3c543b42a6df35feb3db6689e512fa167739451e (patch)
tree55c470e21d1665d5379290f42c585bde964fa387 /drivers/opp/ti-opp-supply.c
parent2368f57685768f9f9cd666eaa4194a359d89afb8 (diff)
downloadlinux-3c543b42a6df35feb3db6689e512fa167739451e.tar.xz
OPP: Migrate set-opp-helper API to use set-config helpers
Now that we have a central API to handle all OPP table configurations, migrate the set-opp-helper family of helpers to use the new infrastructure. The return type and parameter to the APIs change a bit due to this, update the current users as well in the same commit in order to avoid breaking builds. Remove devm_pm_opp_register_set_opp_helper() as it has no users currently. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp/ti-opp-supply.c')
-rw-r--r--drivers/opp/ti-opp-supply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
index bd4771f388ab..40ebc9ac82dd 100644
--- a/drivers/opp/ti-opp-supply.c
+++ b/drivers/opp/ti-opp-supply.c
@@ -405,9 +405,9 @@ static int ti_opp_supply_probe(struct platform_device *pdev)
return ret;
}
- ret = PTR_ERR_OR_ZERO(dev_pm_opp_register_set_opp_helper(cpu_dev,
- ti_opp_supply_set_opp));
- if (ret)
+ ret = dev_pm_opp_register_set_opp_helper(cpu_dev,
+ ti_opp_supply_set_opp);
+ if (ret < 0)
_free_optimized_voltages(dev, &opp_data);
return ret;