aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-cris
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-07-20 15:00:32 +0400
committerIngo Molnar <mingo@elte.hu>2008-07-20 21:21:59 +0200
commit8fa8b9fbab90c74139e8e868fe5b30b6a9f6be65 (patch)
treeeb8f81653436fc649f567d702edc73bde8ff9ad3 /include/asm-cris
parentSh: use generic per-device coherent dma allocator (diff)
downloadlinux-dev-8fa8b9fbab90c74139e8e868fe5b30b6a9f6be65.tar.xz
linux-dev-8fa8b9fbab90c74139e8e868fe5b30b6a9f6be65.zip
Cris: convert to using generic dma-coherent mem allocator
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Cc: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-cris')
-rw-r--r--include/asm-cris/dma-mapping.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-cris/dma-mapping.h b/include/asm-cris/dma-mapping.h
index edc8d1bfaae2..4f58670caad5 100644
--- a/include/asm-cris/dma-mapping.h
+++ b/include/asm-cris/dma-mapping.h
@@ -14,6 +14,8 @@
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#ifdef CONFIG_PCI
+#include <asm-generic/dma-coherent.h>
+
void *dma_alloc_coherent(struct device *dev, size_t size,
dma_addr_t *dma_handle, gfp_t flag);