2008-08-28 09:01:36 +08:00
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/dma-mapping.h>
|
2009-08-10 10:53:17 +08:00
|
|
|
#include <linux/dma-debug.h>
|
2008-08-28 09:01:36 +08:00
|
|
|
|
2009-08-10 10:53:17 +08:00
|
|
|
#define PREALLOC_DMA_DEBUG_ENTRIES (1 << 15)
|
2008-08-28 09:01:36 +08:00
|
|
|
|
2009-08-10 10:53:17 +08:00
|
|
|
static int __init dma_init(void)
|
2008-08-28 09:01:36 +08:00
|
|
|
{
|
2009-08-10 10:53:17 +08:00
|
|
|
dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
|
2008-08-28 09:01:36 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2009-08-10 10:53:17 +08:00
|
|
|
fs_initcall(dma_init);
|