diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index ba8994e10ed94744055b5843e2a1c102695af15b..dbc51154f12294b418c72f73459f1a02d25b173a 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -2006,6 +2006,8 @@ static int at_dma_remove(struct platform_device *pdev) struct resource *io; at_dma_off(atdma); + if (pdev->dev.of_node) + of_dma_controller_free(pdev->dev.of_node); dma_async_device_unregister(&atdma->dma_common); dma_pool_destroy(atdma->memset_pool);