Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: dispcc-sm8250: 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-19-dmitry.baryshkov@linaro.org

authored by

Dmitry Baryshkov and committed by
Bjorn Andersson
009d4368 7e5c218f

+1 -8
+1 -8
drivers/clk/qcom/dispcc-sm8250.c
··· 1251 1251 }; 1252 1252 MODULE_DEVICE_TABLE(of, disp_cc_sm8250_match_table); 1253 1253 1254 - static void disp_cc_sm8250_pm_runtime_disable(void *data) 1255 - { 1256 - pm_runtime_disable(data); 1257 - } 1258 - 1259 1254 static int disp_cc_sm8250_probe(struct platform_device *pdev) 1260 1255 { 1261 1256 struct regmap *regmap; 1262 1257 int ret; 1263 1258 1264 - pm_runtime_enable(&pdev->dev); 1265 - 1266 - ret = devm_add_action_or_reset(&pdev->dev, disp_cc_sm8250_pm_runtime_disable, &pdev->dev); 1259 + ret = devm_pm_runtime_enable(&pdev->dev); 1267 1260 if (ret) 1268 1261 return ret; 1269 1262