projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dfda12
)
swiotlb: use unmap_single instead of swiotlb_unmap_single in swiotlb_free_coherent
author
FUJITA Tomonori
<fujita.tomonori@lab.ntt.co.jp>
Mon, 8 Sep 2008 09:53:49 +0000
(18:53 +0900)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 8 Sep 2008 13:53:31 +0000
(15:53 +0200)
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>
lib/swiotlb.c
patch
|
blob
|
history
diff --git
a/lib/swiotlb.c
b/lib/swiotlb.c
index
2fb485d
..
bf61c73
100644
(file)
--- 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