diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-30 06:44:15 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-30 06:46:20 -0400 |
commit | d9d54540147336c75f81c36c342b3bfec0d4d60d (patch) | |
tree | 5541ffccba0c1053d94ed58e035f47a9c7d8aefe /drivers/net/irda | |
parent | 1338631433d8de7cf85b7e8fcf1a389ad89e7a8f (diff) |
ARM: sa11x0: fix build errors from DMA engine API updates
The recent merge of the sa11x0 code into mainline had silent conflicts
with further development of the DMA engine API, leading to build errors
and warnings:
drivers/net/irda/sa1100_ir.c: In function 'sa1100_irda_dma_start':
drivers/net/irda/sa1100_ir.c:151: error: too few arguments to function 'chan->device->device_prep_slave_sg'
drivers/dma/sa11x0-dma.c: In function 'sa11x0_dma_probe':
drivers/dma/sa11x0-dma.c:950: warning: assignment from incompatible pointer type
Fix these.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/sa1100_ir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c index a0d1913a58d3..e25067552b20 100644 --- a/drivers/net/irda/sa1100_ir.c +++ b/drivers/net/irda/sa1100_ir.c | |||
@@ -147,7 +147,7 @@ static void sa1100_irda_dma_start(struct sa1100_buf *buf, | |||
147 | struct dma_async_tx_descriptor *desc; | 147 | struct dma_async_tx_descriptor *desc; |
148 | struct dma_chan *chan = buf->chan; | 148 | struct dma_chan *chan = buf->chan; |
149 | 149 | ||
150 | desc = chan->device->device_prep_slave_sg(chan, &buf->sg, 1, dir, | 150 | desc = dmaengine_prep_slave_sg(chan, &buf->sg, 1, dir, |
151 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 151 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
152 | if (desc) { | 152 | if (desc) { |
153 | desc->callback = cb; | 153 | desc->callback = cb; |