|
@@ -1072,7 +1072,12 @@ err_get_sync:
|
|
static int cppi41_dma_remove(struct platform_device *pdev)
|
|
static int cppi41_dma_remove(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct cppi41_dd *cdd = platform_get_drvdata(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);
|
|
of_dma_controller_free(pdev->dev.of_node);
|
|
dma_async_device_unregister(&cdd->ddev);
|
|
dma_async_device_unregister(&cdd->ddev);
|
|
|
|
|