summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/dispcc-sm8450.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2023-01-03 17:55:13 +0300
committerBjorn Andersson <andersson@kernel.org>2023-01-11 07:05:08 +0300
commitb69069c3ff68ff39aa182a901db89b0fdcfefa02 (patch)
tree2725e16f53ffdf84a1c71345d3f46e2a43bdf240 /drivers/clk/qcom/dispcc-sm8450.c
parent009d43686ec6cfd6ceb7ef6a940132232268aa8e (diff)
downloadlinux-b69069c3ff68ff39aa182a901db89b0fdcfefa02.tar.xz
clk: qcom: dispcc-sm8450: 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-20-dmitry.baryshkov@linaro.org
Diffstat (limited to 'drivers/clk/qcom/dispcc-sm8450.c')
-rw-r--r--drivers/clk/qcom/dispcc-sm8450.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/clk/qcom/dispcc-sm8450.c b/drivers/clk/qcom/dispcc-sm8450.c
index 40efa4682bed..adbfd30bfc96 100644
--- a/drivers/clk/qcom/dispcc-sm8450.c
+++ b/drivers/clk/qcom/dispcc-sm8450.c
@@ -1762,19 +1762,12 @@ static const struct of_device_id disp_cc_sm8450_match_table[] = {
};
MODULE_DEVICE_TABLE(of, disp_cc_sm8450_match_table);
-static void disp_cc_sm8450_pm_runtime_disable(void *data)
-{
- pm_runtime_disable(data);
-}
-
static int disp_cc_sm8450_probe(struct platform_device *pdev)
{
struct regmap *regmap;
int ret;
- pm_runtime_enable(&pdev->dev);
-
- ret = devm_add_action_or_reset(&pdev->dev, disp_cc_sm8450_pm_runtime_disable, &pdev->dev);
+ ret = devm_pm_runtime_enable(&pdev->dev);
if (ret)
return ret;