diff mbox

[03/11] atmel-mci: use dmaengine helper functions

Message ID AANLkTikjjS-esHAzybHM_-p3h+bjXLHFVW+-K+OxGnHZ@mail.gmail.com
State Accepted, archived
Headers show

Commit Message

Linus Walleij March 4, 2011, 10:25 a.m. UTC
---------- Forwarded message ----------
From: Linus Walleij <linus.walleij@linaro.org>
Date: Thu, Feb 10, 2011 at 4:08 PM
Subject: [PATCH 03/11] atmel-mci: use dmaengine helper functions
To: linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>
Cc: Dan Williams <dan.j.williams@intel.com>, Nicolas Ferre
<nicolas.ferre@atmel.com>, Linus Walleij <linus.walleij@linaro.org>


Use the new dmaengine helpers to make the code more readable.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/mmc/host/atmel-mci.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

--
1.7.4
diff mbox

Patch

diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index df5a135..80bc9a5 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)
       struct dma_chan *chan = host->data_chan;

       if (chan) {
-         chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+               dmaengine_terminate_all(chan);
               atmci_dma_cleanup(host);
       } else {
               /* Data transfer was stopped by the interrupt handler */
@@ -710,8 +710,8 @@  static void atmci_submit_data(struct atmel_mci *host)
       struct dma_async_tx_descriptor  *desc = host->dma.data_desc;

       if (chan) {
-               desc->tx_submit(desc);
-               chan->device->device_issue_pending(chan);
+               dmaengine_submit(desc);
+               dma_async_issue_pending(chan);
       }
 }