Commit 2f802d0a authored by Dongliang Mu's avatar Dongliang Mu Committed by Vinod Koul
Browse files

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.

Signed-off-by: default avatarDongliang Mu <mudongliangabcd@gmail.com>
Reviewed-by: default avatarJon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20211021031432.3466261-1-mudongliangabcd@gmail.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c5a51fc8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -961,7 +961,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;