aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/dmaengine.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-08-04 22:43:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-04 22:43:43 -0400
commit7f3bf7cd348cead84f8027b32aa30ea49fa64df5 (patch)
treed2f68190c64a7598fff040a8895103031551e2f2 /drivers/dma/dmaengine.c
parentcbc158d6bfa1990f7869717bb5270867c66068d1 (diff)
parent21ef4b8b7a7d59a995bf44382de38c95587767d4 (diff)
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: dmaengine: use DEFINE_IDR for static initialization ioat: fix xor_idx_to_desc Avoid section type conflict in dma/ioat/dma_v3.c ioat: Adding PCI IDs for IOAT devices on SandyBridge platforms
Diffstat (limited to 'drivers/dma/dmaengine.c')
-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 26374b2a55a2..b48967b499da 100644
--- a/drivers/dma/dmaengine.c
+++ b/drivers/dma/dmaengine.c
@@ -62,9 +62,9 @@
62#include <linux/slab.h> 62#include <linux/slab.h>
63 63
64static DEFINE_MUTEX(dma_list_mutex); 64static DEFINE_MUTEX(dma_list_mutex);
65static DEFINE_IDR(dma_idr);
65static LIST_HEAD(dma_device_list); 66static LIST_HEAD(dma_device_list);
66static long dmaengine_ref_count; 67static long dmaengine_ref_count;
67static struct idr dma_idr;
68 68
69/* --- sysfs implementation --- */ 69/* --- sysfs implementation --- */
70 70
@@ -1050,8 +1050,6 @@ EXPORT_SYMBOL_GPL(dma_run_dependencies);
1050 1050
1051static int __init dma_bus_init(void) 1051static int __init dma_bus_init(void)
1052{ 1052{
1053 idr_init(&dma_idr);
1054 mutex_init(&dma_list_mutex);
1055 return class_register(&dma_devclass); 1053 return class_register(&dma_devclass);
1056} 1054}
1057arch_initcall(dma_bus_init); 1055arch_initcall(dma_bus_init);