/* at_dma_off - disable DMA controller @atdma: the Atmel HDAMC device  */
static void at_dma_off(struct at_dma *atdma)
/* at_dma_off - disable DMA controller @atdma: the Atmel HDAMC device  */
static void at_dma_off(struct at_dma *atdma)
{
	dma_writel(atdma, EN, 0);
	dma_writel(atdma, EBCIDR, -1L);
	while (dma_readl(atdma, CHSR) & atdma->all_chan_mask)
		cpu_relax();
}