mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-06 17:35:20 +02:00
clk: starfive: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage
[ Upstream commit55c312c1b2
] 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:dae5448a32
("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>
This commit is contained in:
parent
8758691ea8
commit
521d101e9e
|
@ -145,7 +145,7 @@ static int jh7110_voutcrg_probe(struct platform_device *pdev)
|
|||
|
||||
/* enable power domain and clocks */
|
||||
pm_runtime_enable(priv->dev);
|
||||
ret = pm_runtime_get_sync(priv->dev);
|
||||
ret = pm_runtime_resume_and_get(priv->dev);
|
||||
if (ret < 0)
|
||||
return dev_err_probe(priv->dev, ret, "failed to turn on power\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user