dmaengine: tegra210-adma: fix pm runtime unbalance in tegra_adma_remove
authorDongliang Mu <mudongliangabcd@gmail.com>
Thu, 21 Oct 2021 03:14:31 +0000 (11:14 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Oct 2021 04:36:10 +0000 (10:06 +0530)
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: Dongliang Mu <mudongliangabcd@gmail.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20211021031432.3466261-1-mudongliangabcd@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra210-adma.c

index ebbcff567c8196b044339e71793161dd03f9e096..ae39b52012b2fb74e723637652b2e07ea718defe 100644 (file)
@@ -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;