X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=drivers%2Fdma%2Fdw%2Fplatform.c;h=6565a361e7e51c7e80bbbc6d920880b47aa71af8;hb=ce1d3fde87d1a21f1ec1147dde32b2825dd3a276;hp=aaff37f53523c21597c7fae896b32a0fdc3eb3f8;hpb=88987d2c7534a0269f567fb101e6d71a08f0f01d;p=mirror_ubuntu-focal-kernel.git diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c index aaff37f53523..6565a361e7e5 100644 --- a/drivers/dma/dw/platform.c +++ b/drivers/dma/dw/platform.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -185,6 +186,8 @@ static int dw_probe(struct platform_device *pdev) if (err) return err; + pm_runtime_enable(&pdev->dev); + err = dw_dma_probe(chip, pdata); if (err) goto err_dw_dma_probe; @@ -205,6 +208,7 @@ static int dw_probe(struct platform_device *pdev) return 0; err_dw_dma_probe: + pm_runtime_disable(&pdev->dev); clk_disable_unprepare(chip->clk); return err; } @@ -217,6 +221,7 @@ static int dw_remove(struct platform_device *pdev) of_dma_controller_free(pdev->dev.of_node); dw_dma_remove(chip); + pm_runtime_disable(&pdev->dev); clk_disable_unprepare(chip->clk); return 0;