aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorBarry Song <Baohua.Song@csr.com>2014-05-25 05:19:05 -0400
committerTejun Heo <tj@kernel.org>2014-05-27 09:33:22 -0400
commit69493e0b0a8b5d4a0df7df82bad49ad07ae6921d (patch)
tree8d2736fd1d10f4fba9194cb84fe997b8cbdcfd24 /drivers/ata
parent754a292fe6b08196cb135c03b404444e17de520a (diff)
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_ep93xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c
index cad9d45749c4..6ad5c072ce34 100644
--- a/drivers/ata/pata_ep93xx.c
+++ b/drivers/ata/pata_ep93xx.c
@@ -708,8 +708,8 @@ static void ep93xx_pata_dma_start(struct ata_queued_cmd *qc)
708 struct dma_chan *channel = qc->dma_dir == DMA_TO_DEVICE 708 struct dma_chan *channel = qc->dma_dir == DMA_TO_DEVICE
709 ? drv_data->dma_tx_channel : drv_data->dma_rx_channel; 709 ? drv_data->dma_tx_channel : drv_data->dma_rx_channel;
710 710
711 txd = channel->device->device_prep_slave_sg(channel, qc->sg, 711 txd = dmaengine_prep_slave_sg(channel, qc->sg, qc->n_elem, qc->dma_dir,
712 qc->n_elem, qc->dma_dir, DMA_CTRL_ACK, NULL); 712 DMA_CTRL_ACK);
713 if (!txd) { 713 if (!txd) {
714 dev_err(qc->ap->dev, "failed to prepare slave for sg dma\n"); 714 dev_err(qc->ap->dev, "failed to prepare slave for sg dma\n");
715 return; 715 return;