projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5c218
)
clk: qcom: dispcc-sm8250: switch to devm_pm_runtime_enable
author
Dmitry Baryshkov
<dmitry.baryshkov@linaro.org>
Tue, 3 Jan 2023 14:55:12 +0000
(16:55 +0200)
committer
Bjorn Andersson
<andersson@kernel.org>
Wed, 11 Jan 2023 04:05:08 +0000
(22:05 -0600)
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
drivers/clk/qcom/dispcc-sm8250.c
patch
|
blob
|
history
diff --git
a/drivers/clk/qcom/dispcc-sm8250.c
b/drivers/clk/qcom/dispcc-sm8250.c
index 382dbd8ba250bcae9387e498b551acd34b8a876b..e17bb8b543b51b38bc06816d098621f4448ac7f2 100644
(file)
--- a/
drivers/clk/qcom/dispcc-sm8250.c
+++ b/
drivers/clk/qcom/dispcc-sm8250.c
@@
-1251,19
+1251,12
@@
static const struct of_device_id disp_cc_sm8250_match_table[] = {
};
MODULE_DEVICE_TABLE(of, disp_cc_sm8250_match_table);
-static void disp_cc_sm8250_pm_runtime_disable(void *data)
-{
- pm_runtime_disable(data);
-}
-
static int disp_cc_sm8250_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_sm8250_pm_runtime_disable, &pdev->dev);
+ ret = devm_pm_runtime_enable(&pdev->dev);
if (ret)
return ret;