]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: DMA fix bug in omap_get_dma_dst_pos
authorAnand Gadiyar <gadiyar@ti.com>
Mon, 1 Oct 2007 17:41:36 +0000 (10:41 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 1 Oct 2007 18:01:14 +0000 (11:01 -0700)
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 <gadiyar@ti.com>
Fixed to use OMAP_DMA_CDAC_REG.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c

index 3e026b20464f45d859787ada256e2e54443206a8..7eea85803a053eb1a3523ac8f583b5fe273f6722 100644 (file)
@@ -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;
 }