Merge branch 'for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu
[linux-2.6-microblaze.git] / drivers / dma / mmp_tdma.c
index e7d1e12..10117f2 100644 (file)
@@ -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;
 }