diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2011-02-10 10:08:26 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-03-15 13:49:07 -0400 |
commit | 5328906aa2e54a7a5e99e1ba8ee52b387e8be44b (patch) | |
tree | 4bc0b872bbdd6683b74895d2483759d29455a1ca /drivers | |
parent | 88ce4db313bca1e4e6ef3b448471f85d3e14a854 (diff) |
mmc: atmel-mci: use dmaengine helper functions
Use the new dmaengine helpers to make the code more readable.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/atmel-mci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index df5a1354237..80bc9a5c25c 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c | |||
@@ -589,7 +589,7 @@ static void atmci_stop_dma(struct atmel_mci *host) | |||
589 | struct dma_chan *chan = host->data_chan; | 589 | struct dma_chan *chan = host->data_chan; |
590 | 590 | ||
591 | if (chan) { | 591 | if (chan) { |
592 | chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); | 592 | dmaengine_terminate_all(chan); |
593 | atmci_dma_cleanup(host); | 593 | atmci_dma_cleanup(host); |
594 | } else { | 594 | } else { |
595 | /* Data transfer was stopped by the interrupt handler */ | 595 | /* Data transfer was stopped by the interrupt handler */ |
@@ -710,8 +710,8 @@ static void atmci_submit_data(struct atmel_mci *host) | |||
710 | struct dma_async_tx_descriptor *desc = host->dma.data_desc; | 710 | struct dma_async_tx_descriptor *desc = host->dma.data_desc; |
711 | 711 | ||
712 | if (chan) { | 712 | if (chan) { |
713 | desc->tx_submit(desc); | 713 | dmaengine_submit(desc); |
714 | chan->device->device_issue_pending(chan); | 714 | dma_async_issue_pending(chan); |
715 | } | 715 | } |
716 | } | 716 | } |
717 | 717 | ||