aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/dma/dmaengine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c
index 8bcb15fb959d..bc11eebff44d 100644
--- a/drivers/dma/dmaengine.c
+++ b/drivers/dma/dmaengine.c
@@ -61,9 +61,9 @@
61#include <linux/slab.h> 61#include <linux/slab.h>
62 62
63static DEFINE_MUTEX(dma_list_mutex); 63static DEFINE_MUTEX(dma_list_mutex);
64static DEFINE_IDR(dma_idr);
64static LIST_HEAD(dma_device_list); 65static LIST_HEAD(dma_device_list);
65static long dmaengine_ref_count; 66static long dmaengine_ref_count;
66static struct idr dma_idr;
67 67
68/* --- sysfs implementation --- */ 68/* --- sysfs implementation --- */
69 69
@@ -1049,8 +1049,6 @@ EXPORT_SYMBOL_GPL(dma_run_dependencies);
1049 1049
1050static int __init dma_bus_init(void) 1050static int __init dma_bus_init(void)
1051{ 1051{
1052 idr_init(&dma_idr);
1053 mutex_init(&dma_list_mutex);
1054 return class_register(&dma_devclass); 1052 return class_register(&dma_devclass);
1055} 1053}
1056arch_initcall(dma_bus_init); 1054arch_initcall(dma_bus_init);