Commit 2b704250 authored by Minghao Chi's avatar Minghao Chi Committed by Nishanth Menon

soc: ti: pm33xx: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Reviewed-by: default avatarTony Lindgren <tony@aotmide.com>
Link: https://lore.kernel.org/r/20220418063059.2558074-1-chi.minghao@zte.com.cn
parent b9e8a7d9
...@@ -555,11 +555,9 @@ static int am33xx_pm_probe(struct platform_device *pdev) ...@@ -555,11 +555,9 @@ static int am33xx_pm_probe(struct platform_device *pdev)
#endif /* CONFIG_SUSPEND */ #endif /* CONFIG_SUSPEND */
pm_runtime_enable(dev); pm_runtime_enable(dev);
ret = pm_runtime_get_sync(dev); ret = pm_runtime_resume_and_get(dev);
if (ret < 0) { if (ret < 0)
pm_runtime_put_noidle(dev);
goto err_pm_runtime_disable; goto err_pm_runtime_disable;
}
ret = pm_ops->init(am33xx_do_sram_idle); ret = pm_ops->init(am33xx_do_sram_idle);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment