diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-05-22 05:19:11 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-02 14:12:55 +0200 |
commit | 5eabfbdd7d6a473afbbd4916877ee04801ca2c45 (patch) | |
tree | 01e73f896d41438c284f09cbeca9ddaa7c8e177e /drivers/staging/media/tegra-vde | |
parent | 53ae298fde7adcc4b1432bce2dbdf8dac54dfa72 (diff) |
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: dc8276b78917 ("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>
Diffstat (limited to 'drivers/staging/media/tegra-vde')
-rw-r--r-- | drivers/staging/media/tegra-vde/vde.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/media/tegra-vde/vde.c b/drivers/staging/media/tegra-vde/vde.c index e025b69776f2..ed4c1250b303 100644 --- a/drivers/staging/media/tegra-vde/vde.c +++ b/drivers/staging/media/tegra-vde/vde.c @@ -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); |