diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-11-15 16:31:00 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-11-22 10:51:29 +0530 |
commit | c236ba4ae7183c1add8dbce91b27c700f7ef4168 (patch) | |
tree | f60200c694e86b7e8c772b7b1b72778a09afcc63 /drivers/dma | |
parent | a7e335deed174a37fc6f84f69caaeff8a08f8ff8 (diff) |
dmaengine: mmp_tdma: 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: Chuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20191115083100.12220-1-hslester96@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/mmp_tdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index e7d1e12bf464..10117f271b12 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c @@ -544,6 +544,9 @@ static void mmp_tdma_issue_pending(struct dma_chan *chan) static int mmp_tdma_remove(struct platform_device *pdev) { + if (pdev->dev.of_node) + of_dma_controller_free(pdev->dev.of_node); + return 0; } |