Commit 39716c56 authored by Chuhong Yuan's avatar Chuhong Yuan Committed by Vinod Koul

dmaengine: mmp_pdma: add missed of_dma_controller_free

The driver calls of_dma_controller_register in probe but does not free
it in remove.
Add the call to fix it.
Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20191115083153.12334-1-hslester96@gmail.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c236ba4a
...@@ -945,6 +945,8 @@ static int mmp_pdma_remove(struct platform_device *op) ...@@ -945,6 +945,8 @@ static int mmp_pdma_remove(struct platform_device *op)
struct mmp_pdma_phy *phy; struct mmp_pdma_phy *phy;
int i, irq = 0, irq_num = 0; int i, irq = 0, irq_num = 0;
if (op->dev.of_node)
of_dma_controller_free(op->dev.of_node);
for (i = 0; i < pdev->dma_channels; i++) { for (i = 0; i < pdev->dma_channels; i++) {
if (platform_get_irq(op, i) > 0) if (platform_get_irq(op, i) > 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment