diff options
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r-- | drivers/dma/mv_xor.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index bcda17426411..d35cbd1ff0b3 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/async_tx.h> | ||
22 | #include <linux/delay.h> | 21 | #include <linux/delay.h> |
23 | #include <linux/dma-mapping.h> | 22 | #include <linux/dma-mapping.h> |
24 | #include <linux/spinlock.h> | 23 | #include <linux/spinlock.h> |
@@ -340,7 +339,7 @@ mv_xor_run_tx_complete_actions(struct mv_xor_desc_slot *desc, | |||
340 | } | 339 | } |
341 | 340 | ||
342 | /* run dependent operations */ | 341 | /* run dependent operations */ |
343 | async_tx_run_dependencies(&desc->async_tx); | 342 | dma_run_dependencies(&desc->async_tx); |
344 | 343 | ||
345 | return cookie; | 344 | return cookie; |
346 | } | 345 | } |
@@ -607,8 +606,7 @@ submit_done: | |||
607 | } | 606 | } |
608 | 607 | ||
609 | /* returns the number of allocated descriptors */ | 608 | /* returns the number of allocated descriptors */ |
610 | static int mv_xor_alloc_chan_resources(struct dma_chan *chan, | 609 | static int mv_xor_alloc_chan_resources(struct dma_chan *chan) |
611 | struct dma_client *client) | ||
612 | { | 610 | { |
613 | char *hw_desc; | 611 | char *hw_desc; |
614 | int idx; | 612 | int idx; |
@@ -958,7 +956,7 @@ static int __devinit mv_xor_memcpy_self_test(struct mv_xor_device *device) | |||
958 | dma_chan = container_of(device->common.channels.next, | 956 | dma_chan = container_of(device->common.channels.next, |
959 | struct dma_chan, | 957 | struct dma_chan, |
960 | device_node); | 958 | device_node); |
961 | if (mv_xor_alloc_chan_resources(dma_chan, NULL) < 1) { | 959 | if (mv_xor_alloc_chan_resources(dma_chan) < 1) { |
962 | err = -ENODEV; | 960 | err = -ENODEV; |
963 | goto out; | 961 | goto out; |
964 | } | 962 | } |
@@ -1053,7 +1051,7 @@ mv_xor_xor_self_test(struct mv_xor_device *device) | |||
1053 | dma_chan = container_of(device->common.channels.next, | 1051 | dma_chan = container_of(device->common.channels.next, |
1054 | struct dma_chan, | 1052 | struct dma_chan, |
1055 | device_node); | 1053 | device_node); |
1056 | if (mv_xor_alloc_chan_resources(dma_chan, NULL) < 1) { | 1054 | if (mv_xor_alloc_chan_resources(dma_chan) < 1) { |
1057 | err = -ENODEV; | 1055 | err = -ENODEV; |
1058 | goto out; | 1056 | goto out; |
1059 | } | 1057 | } |
@@ -1221,7 +1219,6 @@ static int __devinit mv_xor_probe(struct platform_device *pdev) | |||
1221 | INIT_LIST_HEAD(&mv_chan->chain); | 1219 | INIT_LIST_HEAD(&mv_chan->chain); |
1222 | INIT_LIST_HEAD(&mv_chan->completed_slots); | 1220 | INIT_LIST_HEAD(&mv_chan->completed_slots); |
1223 | INIT_LIST_HEAD(&mv_chan->all_slots); | 1221 | INIT_LIST_HEAD(&mv_chan->all_slots); |
1224 | INIT_RCU_HEAD(&mv_chan->common.rcu); | ||
1225 | mv_chan->common.device = dma_dev; | 1222 | mv_chan->common.device = dma_dev; |
1226 | 1223 | ||
1227 | list_add_tail(&mv_chan->common.device_node, &dma_dev->channels); | 1224 | list_add_tail(&mv_chan->common.device_node, &dma_dev->channels); |