Skip to content

Commit

Permalink
ASoC: tegra30: ahub: Remove handing of disabled runtime PM
Browse files Browse the repository at this point in the history
Runtime PM is always available on Tegra since commit 40b2bb1
("ARM: tegra: enforce PM requirement"), hence there is no need to
handle the case of a disabled RPM by Tegra drivers. Remove handing
of a disabled runtime PM from Tegra30 AHUB driver.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210314154459.15375-18-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Dmitry Osipenko authored and Mark Brown committed Mar 18, 2021
1 parent e2965c2 commit b557144
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions sound/soc/tegra/tegra30_ahub.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,18 +584,11 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
regcache_cache_only(ahub->regmap_ahub, true);

pm_runtime_enable(&pdev->dev);
if (!pm_runtime_enabled(&pdev->dev)) {
ret = tegra30_ahub_runtime_resume(&pdev->dev);
if (ret)
goto err_pm_disable;
}

of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);

return 0;

err_pm_disable:
pm_runtime_disable(&pdev->dev);
err_unset_ahub:
ahub = NULL;

Expand All @@ -605,8 +598,6 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
static int tegra30_ahub_remove(struct platform_device *pdev)
{
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
tegra30_ahub_runtime_suspend(&pdev->dev);

ahub = NULL;

Expand Down

0 comments on commit b557144

Please sign in to comment.