提交 5eabfbdd 编写于 作者: Y Yang Yingliang 提交者: Mauro Carvalho Chehab

media: staging: media: tegra-vde: add missing error return code in tegra_vde_probe()

Add missing return error code when pm_runtime_resume_and_get() failed.

Fixes: dc8276b7 ("staging: media: tegra-vde: use pm_runtime_resume_and_get()")
Reported-by: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NDmitry Osipenko <digetx@gmail.com>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 53ae298f
......@@ -1071,7 +1071,8 @@ static int tegra_vde_probe(struct platform_device *pdev)
* power-cycle it in order to put hardware into a predictable lower
* power state.
*/
if (pm_runtime_resume_and_get(dev) < 0)
err = pm_runtime_resume_and_get(dev);
if (err)
goto err_pm_runtime;
pm_runtime_put(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册