Message ID | 80314068d96eb53e0d9838736415b96015803844.1653564321.git.viresh.kumar@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | OPP: Add new configuration interface: dev_pm_opp_set_config() | expand |
On Thu, 26 May 2022 at 13:44, Viresh Kumar <viresh.kumar@linaro.org> wrote: > > The OPP core now provides a unified API for setting all configuration > types, i.e. dev_pm_opp_set_config(). > > Lets start using it. > > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Kind regards Uffe > --- > drivers/mmc/host/sdhci-msm.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c > index 50c71e0ba5e4..994f3f0231f7 100644 > --- a/drivers/mmc/host/sdhci-msm.c > +++ b/drivers/mmc/host/sdhci-msm.c > @@ -2496,6 +2496,9 @@ static int sdhci_msm_probe(struct platform_device *pdev) > const struct sdhci_msm_offset *msm_offset; > const struct sdhci_msm_variant_info *var_info; > struct device_node *node = pdev->dev.of_node; > + struct dev_pm_opp_config opp_config = { > + .clk_name = "core", > + }; > > host = sdhci_pltfm_init(pdev, &sdhci_msm_pdata, sizeof(*msm_host)); > if (IS_ERR(host)) > @@ -2564,7 +2567,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) > if (ret) > goto bus_clk_disable; > > - ret = devm_pm_opp_set_clkname(&pdev->dev, "core"); > + ret = devm_pm_opp_set_config(&pdev->dev, &opp_config); > if (ret) > goto bus_clk_disable; > > -- > 2.31.1.272.g89b43f80a514 >
diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 50c71e0ba5e4..994f3f0231f7 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -2496,6 +2496,9 @@ static int sdhci_msm_probe(struct platform_device *pdev) const struct sdhci_msm_offset *msm_offset; const struct sdhci_msm_variant_info *var_info; struct device_node *node = pdev->dev.of_node; + struct dev_pm_opp_config opp_config = { + .clk_name = "core", + }; host = sdhci_pltfm_init(pdev, &sdhci_msm_pdata, sizeof(*msm_host)); if (IS_ERR(host)) @@ -2564,7 +2567,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) if (ret) goto bus_clk_disable; - ret = devm_pm_opp_set_clkname(&pdev->dev, "core"); + ret = devm_pm_opp_set_config(&pdev->dev, &opp_config); if (ret) goto bus_clk_disable;
The OPP core now provides a unified API for setting all configuration types, i.e. dev_pm_opp_set_config(). Lets start using it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/mmc/host/sdhci-msm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)