Commit 5eabfbdd authored by Yang Yingliang's avatar Yang Yingliang Committed by 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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment