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~32 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8143c8e3ae8f214bbda0ba394076e9026da5dedd;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 Fixed to use OMAP_DMA_CDAC_REG. Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 3e026b20464..7eea85803a0 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 = OMAP_DMA_CDAC_REG(lch); return offset; }