summaryrefslogtreecommitdiffstats
path: root/include/asm-frv/dma-mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-frv/dma-mapping.h')
-rw-r--r--include/asm-frv/dma-mapping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-frv/dma-mapping.h b/include/asm-frv/dma-mapping.h
index 5003e01..e9fc1d4 100644
--- a/include/asm-frv/dma-mapping.h
+++ b/include/asm-frv/dma-mapping.h
@@ -23,7 +23,7 @@ void dma_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t
* returns, or alternatively stop on the first sg_dma_len(sg) which
* is 0.
*/
-#define sg_dma_address(sg) ((unsigned long) (page_to_phys((sg)->page) + (sg)->offset))
+#define sg_dma_address(sg) ((sg)->dma_address)
#define sg_dma_len(sg) ((sg)->length)
/*
OpenPOWER on IntegriCloud