Commit 521d101e authored by Yuntao Liu's avatar Yuntao Liu Committed by Greg Kroah-Hartman
Browse files

clk: starfive: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage



[ Upstream commit 55c312c1 ]

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: dae5448a ("clk: starfive: Add StarFive JH7110 Video-Output clock driver")
Signed-off-by: default avatarYuntao Liu <liuyuntao12@huawei.com>
Link: https://lore.kernel.org/r/20240815093853.757487-1-liuyuntao12@huawei.com


Reviewed-by: default avatarXingyu Wu <xingyu.wu@starfivetech.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8758691e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment