aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujita <fujita@tulip.osrg.net>2009-07-10 00:25:05 -0400
committerFenghua Yu <fenghua.yu@intel.com>2009-07-17 09:34:57 -0400
commit390bd132b2831a2ad0268e84bffbfc0680debfe5 (patch)
treeb4ce45ac15161eef7a3b6132569eb5571764a057
parent6f409461210baf76ade1bfdd9470fd5b98378b36 (diff)
Add dma_debug_init() for ia64
The commit 9916219579d078c80377dd3988c2cc213536d868 was supposed to add CONFIG_DMA_API_DEBUG support to IA64 however I forgot to add dma_debug_init(). Signed-off-by: fujita <fujita@tulip.osrg.net> Acked-by: Fenghua Yu <fenghua.yu@intel.com>
-rw-r--r--arch/ia64/kernel/dma-mapping.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/ia64/kernel/dma-mapping.c b/arch/ia64/kernel/dma-mapping.c
index 086a2aeb0404..39a3cd0a4173 100644
--- a/arch/ia64/kernel/dma-mapping.c
+++ b/arch/ia64/kernel/dma-mapping.c
@@ -6,6 +6,14 @@ int iommu_detected __read_mostly;
6struct dma_map_ops *dma_ops; 6struct dma_map_ops *dma_ops;
7EXPORT_SYMBOL(dma_ops); 7EXPORT_SYMBOL(dma_ops);
8 8
9#define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16)
10
11static int __init dma_init(void)
12{
13 dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
14}
15fs_initcall(dma_init);
16
9struct dma_map_ops *dma_get_ops(struct device *dev) 17struct dma_map_ops *dma_get_ops(struct device *dev)
10{ 18{
11 return dma_ops; 19 return dma_ops;