summaryrefslogtreecommitdiff
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 {
__u32 iova_length; /* bytes mapped */
};
-#define sg_virt_addr(sg) ((unsigned long)(page_address(sg->page) + sg->offset))
+#define sg_virt_addr(sg) ((unsigned long)sg_virt(sg))
#define sg_dma_address(sg) ((sg)->iova)
#define sg_dma_len(sg) ((sg)->iova_length)