[PATCH 3/3] dmaengine: ti: remove redundant pm_runtime_dont_use_autosuspend() calls

Joshua Crofts crofts at kernel.org
Fri Oct 30 07:59:01 PDT 2026


Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"),
driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.

Remove the redundant function calls. Additionally, remove an unneeded
label as a consequence.

Signed-off-by: Joshua Crofts <crofts at kernel.org>
---
 drivers/dma/ti/cppi41.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/dma/ti/cppi41.c b/drivers/dma/ti/cppi41.c
index 88756dccd62c..e1132e330fad 100644
--- a/drivers/dma/ti/cppi41.c
+++ b/drivers/dma/ti/cppi41.c
@@ -1108,7 +1108,7 @@ static int cppi41_dma_probe(struct platform_device *pdev)
 
 	ret = init_cppi41(dev, cdd);
 	if (ret)
-		goto err_init_cppi;
+		goto err_get_n_chans;
 
 	ret = cppi41_add_chans(dev, cdd);
 	if (ret)
@@ -1142,8 +1142,6 @@ static int cppi41_dma_probe(struct platform_device *pdev)
 	dma_async_device_unregister(&cdd->ddev);
 err_chans:
 	deinit_cppi41(dev, cdd);
-err_init_cppi:
-	pm_runtime_dont_use_autosuspend(dev);
 err_get_n_chans:
 err_get_sync:
 	pm_runtime_put_sync(dev);
@@ -1165,7 +1163,6 @@ static void cppi41_dma_remove(struct platform_device *pdev)
 
 	devm_free_irq(&pdev->dev, cdd->irq, cdd);
 	deinit_cppi41(&pdev->dev, cdd);
-	pm_runtime_dont_use_autosuspend(&pdev->dev);
 	pm_runtime_put_sync(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
 }
-- 
2.47.3




More information about the linux-arm-kernel mailing list