Skip to content

Commit 521d101

Browse files
Yuntao Liugregkh
authored andcommitted
clk: starfive: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage
[ Upstream commit 55c312c ] We need to call pm_runtime_put_noidle() when pm_runtime_get_sync() fails, so use pm_runtime_resume_and_get() instead. this function will handle this. Fixes: dae5448 ("clk: starfive: Add StarFive JH7110 Video-Output clock driver") Signed-off-by: Yuntao Liu <liuyuntao12@huawei.com> Link: https://lore.kernel.org/r/20240815093853.757487-1-liuyuntao12@huawei.com Reviewed-by: Xingyu Wu <xingyu.wu@starfivetech.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8758691 commit 521d101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/starfive/clk-starfive-jh7110-vout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static int jh7110_voutcrg_probe(struct platform_device *pdev)
145145

146146
/* enable power domain and clocks */
147147
pm_runtime_enable(priv->dev);
148-
ret = pm_runtime_get_sync(priv->dev);
148+
ret = pm_runtime_resume_and_get(priv->dev);
149149
if (ret < 0)
150150
return dev_err_probe(priv->dev, ret, "failed to turn on power\n");
151151

0 commit comments

Comments
 (0)