Commit c19c7a13 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Mauro Carvalho Chehab

media: staging: tegra-vde: Runtime PM is always available on Tegra

Runtime PM is always available on Tegra nowadays since commit 40b2bb1b
("ARM: tegra: enforce PM requirement"), hence the case of unavailable RPM
doesn't need to be handled.
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 6f01dfb7
......@@ -1064,17 +1064,8 @@ static int tegra_vde_probe(struct platform_device *pdev)
pm_runtime_use_autosuspend(dev);
pm_runtime_set_autosuspend_delay(dev, 300);
if (!pm_runtime_enabled(dev)) {
err = tegra_vde_runtime_resume(dev);
if (err)
goto err_misc_unreg;
}
return 0;
err_misc_unreg:
misc_deregister(&vde->miscdev);
err_deinit_iommu:
tegra_vde_iommu_deinit(vde);
......@@ -1089,13 +1080,6 @@ static int tegra_vde_remove(struct platform_device *pdev)
{
struct tegra_vde *vde = platform_get_drvdata(pdev);
struct device *dev = &pdev->dev;
int err;
if (!pm_runtime_enabled(dev)) {
err = tegra_vde_runtime_suspend(dev);
if (err)
return err;
}
pm_runtime_dont_use_autosuspend(dev);
pm_runtime_disable(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