aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-parisc/scatterlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-parisc/scatterlist.h')
-rw-r--r--include/asm-parisc/scatterlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-parisc/scatterlist.h b/include/asm-parisc/scatterlist.h
index cd3cfdf82289..62269b31ebf4 100644
--- a/include/asm-parisc/scatterlist.h
+++ b/include/asm-parisc/scatterlist.h
@@ -18,7 +18,7 @@ struct scatterlist {
18 __u32 iova_length; /* bytes mapped */ 18 __u32 iova_length; /* bytes mapped */
19}; 19};
20 20
21#define sg_virt_addr(sg) ((unsigned long)(page_address(sg->page) + sg->offset)) 21#define sg_virt_addr(sg) ((unsigned long)sg_virt(sg))
22#define sg_dma_address(sg) ((sg)->iova) 22#define sg_dma_address(sg) ((sg)->iova)
23#define sg_dma_len(sg) ((sg)->iova_length) 23#define sg_dma_len(sg) ((sg)->iova_length)
24 24