From: FUJITA Tomonori Date: Mon, 8 Sep 2008 09:53:49 +0000 (+0900) Subject: swiotlb: use unmap_single instead of swiotlb_unmap_single in swiotlb_free_coherent X-Git-Tag: v2.6.28-rc4~16^2~3^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21f6c4de4c25c4bdd88c75bc97a78e7fbeebac4d;p=platform%2Fkernel%2Flinux-3.10.git swiotlb: use unmap_single instead of swiotlb_unmap_single in swiotlb_free_coherent We don't need any check in swiotlb_unmap_single here. unmap_single is appropriate. Signed-off-by: FUJITA Tomonori Signed-off-by: Ingo Molnar --- diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 2fb485d..bf61c73 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -513,7 +513,7 @@ swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, free_pages((unsigned long) vaddr, get_order(size)); else /* DMA_TO_DEVICE to avoid memcpy in unmap_single */ - swiotlb_unmap_single (hwdev, dma_handle, size, DMA_TO_DEVICE); + unmap_single(hwdev, vaddr, size, DMA_TO_DEVICE); } static void