omap_writew(0, OMAP_DMA_CICR(lch)); 
if (cpu_class_is_omap1()) OMAP_DMA_CICR_REG(lch) = 0; 
void omap_stop_dma(int lch){	u16 w;	if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) {		int next_lch, cur_lch = lch;		char dma_chan_link_map[OMAP_LOGICAL_DMA_CH_COUNT];		memset(dma_chan_link_map, 0, sizeof(dma_chan_link_map));		do {			/* The loop case: we've been here already */			if (dma_chan_link_map[cur_lch])				break;			/* Mark the current channel */			dma_chan_link_map[cur_lch] = 1;			disable_lnk(cur_lch);			next_lch = dma_chan[cur_lch].next_lch;			cur_lch = next_lch;		} while (next_lch != -1);		return;	}	/* Disable all interrupts on the channel */	omap_writew(0, OMAP_DMA_CICR(lch));	w = omap_readw(OMAP_DMA_CCR(lch));	w &= ~OMAP_DMA_CCR_EN;	omap_writew(w, OMAP_DMA_CCR(lch));	dma_chan[lch].flags &= ~OMAP_DMA_ACTIVE;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1a8bfa1eb998af6e650ad26201f7cae9f2a2fdc8/dma.c/clean/arch/arm/plat-omap/dma.c