diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-04 22:43:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-04 22:43:43 -0400 |
commit | 7f3bf7cd348cead84f8027b32aa30ea49fa64df5 (patch) | |
tree | d2f68190c64a7598fff040a8895103031551e2f2 /drivers/dma/dmaengine.c | |
parent | cbc158d6bfa1990f7869717bb5270867c66068d1 (diff) | |
parent | 21ef4b8b7a7d59a995bf44382de38c95587767d4 (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.c | 4 |
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 | ||
64 | static DEFINE_MUTEX(dma_list_mutex); | 64 | static DEFINE_MUTEX(dma_list_mutex); |
65 | static DEFINE_IDR(dma_idr); | ||
65 | static LIST_HEAD(dma_device_list); | 66 | static LIST_HEAD(dma_device_list); |
66 | static long dmaengine_ref_count; | 67 | static long dmaengine_ref_count; |
67 | static 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 | ||
1051 | static int __init dma_bus_init(void) | 1051 | static 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 | } |
1057 | arch_initcall(dma_bus_init); | 1055 | arch_initcall(dma_bus_init); |