dmaengine: at_hdmac: fix module unloading

of_dma_controller_free() was not called on module onloading.
This lead to a soft lockup:
watchdog: BUG: soft lockup - CPU#0 stuck for 23s!
Modules linked in: at_hdmac [last unloaded: at_hdmac]
when of_dma_request_slave_channel() tried to call ofdma->of_dma_xlate().

Cc: stable@vger.kernel.org
Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding")
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by Richard Genoud and committed by Vinod Koul 77e75fda 98f5f932

Changed files
+2
drivers
+2
drivers/dma/at_hdmac.c
··· 2006 2006 struct resource *io; 2007 2007 2008 2008 at_dma_off(atdma); 2009 + if (pdev->dev.of_node) 2010 + of_dma_controller_free(pdev->dev.of_node); 2009 2011 dma_async_device_unregister(&atdma->dma_common); 2010 2012 2011 2013 dma_pool_destroy(atdma->memset_pool);