aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/iop-adma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/iop-adma.c')
-rw-r--r--drivers/dma/iop-adma.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c
index be9ea9f88805..c74ac9eb009a 100644
--- a/drivers/dma/iop-adma.c
+++ b/drivers/dma/iop-adma.c
@@ -470,8 +470,7 @@ static void iop_chan_start_null_xor(struct iop_adma_chan *iop_chan);
470 * greater than 2x the number slots needed to satisfy a device->max_xor 470 * greater than 2x the number slots needed to satisfy a device->max_xor
471 * request. 471 * request.
472 * */ 472 * */
473static int iop_adma_alloc_chan_resources(struct dma_chan *chan, 473static int iop_adma_alloc_chan_resources(struct dma_chan *chan)
474 struct dma_client *client)
475{ 474{
476 char *hw_desc; 475 char *hw_desc;
477 int idx; 476 int idx;
@@ -865,7 +864,7 @@ static int __devinit iop_adma_memcpy_self_test(struct iop_adma_device *device)
865 dma_chan = container_of(device->common.channels.next, 864 dma_chan = container_of(device->common.channels.next,
866 struct dma_chan, 865 struct dma_chan,
867 device_node); 866 device_node);
868 if (iop_adma_alloc_chan_resources(dma_chan, NULL) < 1) { 867 if (iop_adma_alloc_chan_resources(dma_chan) < 1) {
869 err = -ENODEV; 868 err = -ENODEV;
870 goto out; 869 goto out;
871 } 870 }
@@ -963,7 +962,7 @@ iop_adma_xor_zero_sum_self_test(struct iop_adma_device *device)
963 dma_chan = container_of(device->common.channels.next, 962 dma_chan = container_of(device->common.channels.next,
964 struct dma_chan, 963 struct dma_chan,
965 device_node); 964 device_node);
966 if (iop_adma_alloc_chan_resources(dma_chan, NULL) < 1) { 965 if (iop_adma_alloc_chan_resources(dma_chan) < 1) {
967 err = -ENODEV; 966 err = -ENODEV;
968 goto out; 967 goto out;
969 } 968 }