ata: ep93xx: use dmaengine_prep_slave_sg api instead of internal callback
it is better to use generic api instead of calling an internal callback like channel->device->device_prep_slave_sg(). Signed-off-by: Barry Song <Baohua.Song@csr.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
754a292fe6
commit
69493e0b0a
1 changed files with 2 additions and 2 deletions
|
@ -708,8 +708,8 @@ static void ep93xx_pata_dma_start(struct ata_queued_cmd *qc)
|
|||
struct dma_chan *channel = qc->dma_dir == DMA_TO_DEVICE
|
||||
? drv_data->dma_tx_channel : drv_data->dma_rx_channel;
|
||||
|
||||
txd = channel->device->device_prep_slave_sg(channel, qc->sg,
|
||||
qc->n_elem, qc->dma_dir, DMA_CTRL_ACK, NULL);
|
||||
txd = dmaengine_prep_slave_sg(channel, qc->sg, qc->n_elem, qc->dma_dir,
|
||||
DMA_CTRL_ACK);
|
||||
if (!txd) {
|
||||
dev_err(qc->ap->dev, "failed to prepare slave for sg dma\n");
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue