aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/mv_xor.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r--drivers/dma/mv_xor.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 3f46df3390c7..fbaa2f6225e2 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -606,8 +606,7 @@ submit_done:
606} 606}
607 607
608/* returns the number of allocated descriptors */ 608/* returns the number of allocated descriptors */
609static int mv_xor_alloc_chan_resources(struct dma_chan *chan, 609static int mv_xor_alloc_chan_resources(struct dma_chan *chan)
610 struct dma_client *client)
611{ 610{
612 char *hw_desc; 611 char *hw_desc;
613 int idx; 612 int idx;
@@ -957,7 +956,7 @@ static int __devinit mv_xor_memcpy_self_test(struct mv_xor_device *device)
957 dma_chan = container_of(device->common.channels.next, 956 dma_chan = container_of(device->common.channels.next,
958 struct dma_chan, 957 struct dma_chan,
959 device_node); 958 device_node);
960 if (mv_xor_alloc_chan_resources(dma_chan, NULL) < 1) { 959 if (mv_xor_alloc_chan_resources(dma_chan) < 1) {
961 err = -ENODEV; 960 err = -ENODEV;
962 goto out; 961 goto out;
963 } 962 }
@@ -1052,7 +1051,7 @@ mv_xor_xor_self_test(struct mv_xor_device *device)
1052 dma_chan = container_of(device->common.channels.next, 1051 dma_chan = container_of(device->common.channels.next,
1053 struct dma_chan, 1052 struct dma_chan,
1054 device_node); 1053 device_node);
1055 if (mv_xor_alloc_chan_resources(dma_chan, NULL) < 1) { 1054 if (mv_xor_alloc_chan_resources(dma_chan) < 1) {
1056 err = -ENODEV; 1055 err = -ENODEV;
1057 goto out; 1056 goto out;
1058 } 1057 }