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)
commit2f802d0af7ab5a629a8b4dc9d7be2e11bf477612
tree37d167b3db50810277b8f90ed6ed598f0bd19720
parentc5a51fc89c0103c03b8a54cf12dac7d014b3a2bf
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: 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