projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754a292
)
ata: ep93xx: use dmaengine_prep_slave_sg api instead of internal callback
author
Barry Song
<
[email protected]
>
Sun, 25 May 2014 09:19:05 +0000
(17:19 +0800)
committer
Tejun Heo
<
[email protected]
>
Tue, 27 May 2014 13:33:22 +0000
(09:33 -0400)
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 <
[email protected]
>
Signed-off-by: Tejun Heo <
[email protected]
>
drivers/ata/pata_ep93xx.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_ep93xx.c
b/drivers/ata/pata_ep93xx.c
index cad9d45749c419e51dbdf852fe67ee998796938b..6ad5c072ce348913d8c511574db503a37e798c9c 100644
(file)
--- 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)
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;