From: Jens Axboe Date: Mon, 22 Oct 2007 17:44:53 +0000 (+0200) Subject: Update swiotlb to use sg helpers X-Git-Tag: v2.6.24-rc1~71^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9527f121bd42c5d300815fbf12216bc1a63f60f;p=pandora-kernel.git Update swiotlb to use sg helpers Signed-off-by: Jens Axboe --- diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 752fd95323f3..1a8050ade861 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -35,7 +35,7 @@ #define OFFSET(val,align) ((unsigned long) \ ( (val) & ( (align) - 1))) -#define SG_ENT_VIRT_ADDRESS(sg) (page_address((sg)->page) + (sg)->offset) +#define SG_ENT_VIRT_ADDRESS(sg) (sg_virt((sg))) #define SG_ENT_PHYS_ADDRESS(sg) virt_to_bus(SG_ENT_VIRT_ADDRESS(sg)) /*