diff options
author | 2010-04-10 17:34:06 +0200 | |
---|---|---|
committer | 2010-05-06 11:21:59 +0200 | |
commit | f1525765fb9c432f5dc5d0d18102fbe9980a14ae (patch) | |
tree | 6a2169fb8c49b7e8fd22186410b40b6dae2503d4 /arch/microblaze/kernel/dma.c | |
parent | microblaze: pci-dma: use include/linux/dma-mapping.h (diff) | |
download | linux-f1525765fb9c432f5dc5d0d18102fbe9980a14ae.tar.gz linux-f1525765fb9c432f5dc5d0d18102fbe9980a14ae.tar.bz2 linux-f1525765fb9c432f5dc5d0d18102fbe9980a14ae.zip |
microblaze: Fix consistent code
This patch fix consistent code which had problems with consistent_free
function.
I am not sure if we need to call flush_tlb_all after it but it keeps
tlbs synced.
I added noMMU and MMU version together.
Uncached shadow feature is not tested.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/dma.c')
-rw-r--r-- | arch/microblaze/kernel/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c index ce72dd4967cf..9dcd90b5df55 100644 --- a/arch/microblaze/kernel/dma.c +++ b/arch/microblaze/kernel/dma.c @@ -74,7 +74,7 @@ static void dma_direct_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle) { #ifdef NOT_COHERENT_CACHE - consistent_free(vaddr); + consistent_free(size, vaddr); #else free_pages((unsigned long)vaddr, get_order(size)); #endif |