diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-09-08 18:53:49 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-08 15:53:31 +0200 |
commit | 21f6c4de4c25c4bdd88c75bc97a78e7fbeebac4d (patch) | |
tree | 02a53e938323b2542935951352f0436d640347c7 /lib | |
parent | 9dfda12b8b769e224ca4efbc35ace4524b9c017b (diff) | |
download | kernel_samsung_espresso10-21f6c4de4c25c4bdd88c75bc97a78e7fbeebac4d.zip kernel_samsung_espresso10-21f6c4de4c25c4bdd88c75bc97a78e7fbeebac4d.tar.gz kernel_samsung_espresso10-21f6c4de4c25c4bdd88c75bc97a78e7fbeebac4d.tar.bz2 |
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 <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/swiotlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |