dma: tegra: use sg_dma_address() for getting dma buffer address
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 22 Jun 2012 15:11:10 +0000 (20:41 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 27 Jun 2012 13:31:52 +0000 (19:01 +0530)
commit597c854974db20eebe87e91df0d12daaefabf525
treefc0c16b153cbfbfae9ef98f3ef485c1ba13f76f9
parent49d57b5e588ce511bd826f5759aa2aebf322626b
dma: tegra: use sg_dma_address() for getting dma buffer address

Use the sg_dma_address() to get the segment buffer address for
DMA transfer in place of sg_phys() which returns the physical
address of an sg entry.
The sg_dma_address() returns the correct buffer memory address
for DMA transfer.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/tegra20-apb-dma.c