From: Anand Gadiyar Date: Mon, 1 Oct 2007 17:41:36 +0000 (-0700) Subject: ARM: OMAP: DMA fix bug in omap_get_dma_dst_pos X-Git-Tag: v2.6.23-omap1~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=22f051f0b12793836891cfa845fa7f713db75af8;p=linux-2.6-omap-h63xx.git ARM: OMAP: DMA fix bug in omap_get_dma_dst_pos omap_get_dma_dst_pos() should return the current destination address. The CDSA register contains the destination start address. CDAC register should be used instead. Signed-off-by: Anand Gadiyar Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 3e026b20464..f01d6aeaf65 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -776,7 +776,7 @@ dma_addr_t omap_get_dma_dst_pos(int lch) (OMAP1_DMA_CDSA_U_REG(lch) << 16)); if (cpu_is_omap24xx()) - offset = OMAP2_DMA_CDSA_REG(lch); + offset = OMAP2_DMA_CDAC_REG(lch); return offset; }