diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-01-03 16:55:14 +0200 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-01-10 22:05:08 -0600 |
commit | f9048217a48cd86c1dd32e0e9b5ad204896b1343 (patch) | |
tree | ec83eaa11090c586233584018a9a76fc36a05273 /drivers/clk | |
parent | b69069c3ff68ff39aa182a901db89b0fdcfefa02 (diff) | |
download | linux-stable-f9048217a48cd86c1dd32e0e9b5ad204896b1343.tar.gz linux-stable-f9048217a48cd86c1dd32e0e9b5ad204896b1343.tar.bz2 linux-stable-f9048217a48cd86c1dd32e0e9b5ad204896b1343.zip |
clk: qcom: lpasscc-sc7280: switch to devm_pm_runtime_enable
Switch to using the devm_pm_runtime_enable() instead of hand-coding
corresponding action to call pm_runtime_disable().
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230103145515.1164020-21-dmitry.baryshkov@linaro.org
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/qcom/lpasscc-sc7280.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clk/qcom/lpasscc-sc7280.c b/drivers/clk/qcom/lpasscc-sc7280.c index 5c1e17bd0d76..48432010ce24 100644 --- a/drivers/clk/qcom/lpasscc-sc7280.c +++ b/drivers/clk/qcom/lpasscc-sc7280.c @@ -107,10 +107,13 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev) const struct qcom_cc_desc *desc; int ret; - pm_runtime_enable(&pdev->dev); + ret = devm_pm_runtime_enable(&pdev->dev); + if (ret) + return ret; + ret = pm_clk_create(&pdev->dev); if (ret) - goto disable_pm_runtime; + return ret; ret = pm_clk_add(&pdev->dev, "iface"); if (ret < 0) { @@ -137,9 +140,6 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev) destroy_pm_clk: pm_clk_destroy(&pdev->dev); -disable_pm_runtime: - pm_runtime_disable(&pdev->dev); - return ret; } |