aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/dma-mapping.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-11 17:07:06 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-01-28 13:18:44 +0900
commit8a7bcf0dd0d49fe8b0071adef0dfe8610abdffaa (patch)
treee8f0875c391fa2c2d96746112d841c8ca48d1307 /include/asm-sh/dma-mapping.h
parentsh: flush_cache_sigtramp() takes 1 arg only. (diff)
downloadlinux-dev-8a7bcf0dd0d49fe8b0071adef0dfe8610abdffaa.tar.xz
linux-dev-8a7bcf0dd0d49fe8b0071adef0dfe8610abdffaa.zip
sh: Add SH-5 support to the consistent DMA impl.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to '')
-rw-r--r--include/asm-sh/dma-mapping.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sh/dma-mapping.h b/include/asm-sh/dma-mapping.h
index fcea067f7a9c..20ae762e5258 100644
--- a/include/asm-sh/dma-mapping.h
+++ b/include/asm-sh/dma-mapping.h
@@ -10,7 +10,7 @@ extern struct bus_type pci_bus_type;
/* arch/sh/mm/consistent.c */
extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *handle);
-extern void consistent_free(void *vaddr, size_t size);
+extern void consistent_free(void *vaddr, size_t size, dma_addr_t handle);
extern void consistent_sync(void *vaddr, size_t size, int direction);
#define dma_supported(dev, mask) (1)
@@ -50,7 +50,7 @@ static inline void dma_free_coherent(struct device *dev, size_t size,
return;
}
- consistent_free(vaddr, size);
+ consistent_free(vaddr, size, dma_handle);
}
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)