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