mmc: at91/avr32/atmel-mci: fix DMA-channel leak on module unload
[pandora-kernel.git] / drivers / mmc / host / atmel-mci.c
index 0932024..4964d03 100644 (file)
@@ -2167,10 +2167,8 @@ static int __exit atmci_remove(struct platform_device *pdev)
        atmci_readl(host, ATMCI_SR);
        clk_disable(host->mck);
 
-#ifdef CONFIG_MMC_ATMELMCI_DMA
        if (host->dma.chan)
                dma_release_channel(host->dma.chan);
-#endif
 
        free_irq(platform_get_irq(pdev, 0), host);
        iounmap(host->regs);