dmaengine: tegra210-adma: fix pm runtime unbalance in tegra_adma_remove
Subsystems (3)
PATCH 1/1 dmaengine: tegra210-adma: fix pm runtime unbalance in tegra_adma_remove
Since pm_runtime_put is done when tegra_adma_probe is successful, we cannot do pm_runtime_put_sync again in tegra_adma_remove.
Fix this by removing the pm_runtime_put_sync in tegra_adma_remove.
--- drivers/dma/tegra210-adma.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma/tegra210-adma.c +0 -1
@@ -940,7 +940,6 @@ static int tegra_adma_remove(struct platform_device *pdev)for (i =0 ; i < tdma->nr_channels; ++i)irq_dispose_mapping (tdma->channels[i].irq); -pm_runtime_put_sync (&pdev->dev);pm_runtime_disable (&pdev->dev);return 0 ;
Signature · 1 line
2.25.1
Quoted 16 lines · Dongliang Mu
Since
pm_runtime_putis done whentegra_adma_probeis successful, we cannot dopm_runtime_put_syncagain integra_adma_remove.Fix this by removing the
pm_runtime_put_syncintegra_adma_remove.Signed-off-by Dongliang Mu <[email protected]>--- drivers/dma/tegra210-adma.c | 1 - 1 file changed, 1 deletion(-)drivers/dma/tegra210-adma.c +0
-0
drivers/dma/tegra210-adma.c static int tegra_adma_remove(struct platform_device *pdev) · line 945
Quoted 7 lines
drivers/dma/tegra210-adma.c +0
-1@@ -940,7 +940,6 @@ static int tegra_adma_remove(struct platform_device *pdev)for (i =0 ; i < tdma->nr_channels; ++i)irq_dispose_mapping (tdma->channels[i].irq); -pm_runtime_put_sync (&pdev->dev);pm_runtime_disable (&pdev->dev);return 0 ;
Thanks!
Jon
Signature · 1 line
nvpublic
Quoted 4 lines · Dongliang Mu
Since
pm_runtime_putis done whentegra_adma_probeis successful, we cannot dopm_runtime_put_syncagain integra_adma_remove.Fix this by removing the
pm_runtime_put_syncintegra_adma_remove.
Applied, thanks
Signature · 1 line
~Vinod