diff options
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r-- | drivers/dma/mv_xor.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index f0c123ce8ae0..8239cfdbc2e6 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c | |||
@@ -588,7 +588,8 @@ submit_done: | |||
588 | } | 588 | } |
589 | 589 | ||
590 | /* returns the number of allocated descriptors */ | 590 | /* returns the number of allocated descriptors */ |
591 | static int mv_xor_alloc_chan_resources(struct dma_chan *chan) | 591 | static int mv_xor_alloc_chan_resources(struct dma_chan *chan, |
592 | struct dma_client *client) | ||
592 | { | 593 | { |
593 | char *hw_desc; | 594 | char *hw_desc; |
594 | int idx; | 595 | int idx; |
@@ -938,7 +939,7 @@ static int __devinit mv_xor_memcpy_self_test(struct mv_xor_device *device) | |||
938 | dma_chan = container_of(device->common.channels.next, | 939 | dma_chan = container_of(device->common.channels.next, |
939 | struct dma_chan, | 940 | struct dma_chan, |
940 | device_node); | 941 | device_node); |
941 | if (mv_xor_alloc_chan_resources(dma_chan) < 1) { | 942 | if (mv_xor_alloc_chan_resources(dma_chan, NULL) < 1) { |
942 | err = -ENODEV; | 943 | err = -ENODEV; |
943 | goto out; | 944 | goto out; |
944 | } | 945 | } |
@@ -1033,7 +1034,7 @@ mv_xor_xor_self_test(struct mv_xor_device *device) | |||
1033 | dma_chan = container_of(device->common.channels.next, | 1034 | dma_chan = container_of(device->common.channels.next, |
1034 | struct dma_chan, | 1035 | struct dma_chan, |
1035 | device_node); | 1036 | device_node); |
1036 | if (mv_xor_alloc_chan_resources(dma_chan) < 1) { | 1037 | if (mv_xor_alloc_chan_resources(dma_chan, NULL) < 1) { |
1037 | err = -ENODEV; | 1038 | err = -ENODEV; |
1038 | goto out; | 1039 | goto out; |
1039 | } | 1040 | } |