diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index bac5f023013b23c92519f052f8523b6008524271..6ed99d9263583282e34881110d3fe2fa7b77f637 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/cppi41.c @@ -1072,7 +1072,12 @@ static int cppi41_dma_probe(struct platform_device *pdev) static int cppi41_dma_remove(struct platform_device *pdev) { struct cppi41_dd *cdd = platform_get_drvdata(pdev); + int error; + error = pm_runtime_get_sync(&pdev->dev); + if (error < 0) + dev_err(&pdev->dev, "%s could not pm_runtime_get: %i\n", + __func__, error); of_dma_controller_free(pdev->dev.of_node); dma_async_device_unregister(&cdd->ddev);