mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-05 17:43:09 -05:00
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: dc8276b789 ("staging: media: tegra-vde: use pm_runtime_resume_and_get()")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
53ae298fde
commit
5eabfbdd7d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user