From patchwork Fri Mar 4 10:25:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 312 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:41:39 -0000 Delivered-To: patches@linaro.org Received: by 10.224.60.68 with SMTP id o4cs9856qah; Fri, 4 Mar 2011 02:25:44 -0800 (PST) Received: by 10.224.130.137 with SMTP id t9mr329465qas.100.1299234344617; Fri, 04 Mar 2011 02:25:44 -0800 (PST) Received: from mail-qy0-f171.google.com (mail-qy0-f171.google.com [209.85.216.171]) by mx.google.com with ESMTPS id m16si4141156qck.41.2011.03.04.02.25.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Mar 2011 02:25:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.171 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=209.85.216.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.216.171 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) smtp.mail=linus.walleij@linaro.org Received: by qyj19 with SMTP id 19so32760qyj.16 for ; Fri, 04 Mar 2011 02:25:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.207.196 with SMTP id fz4mr320214qab.184.1299234344478; Fri, 04 Mar 2011 02:25:44 -0800 (PST) Received: by 10.224.28.201 with HTTP; Fri, 4 Mar 2011 02:25:44 -0800 (PST) In-Reply-To: <1297350506-1522-1-git-send-email-linus.walleij@linaro.org> References: <1297350506-1522-1-git-send-email-linus.walleij@linaro.org> Date: Fri, 4 Mar 2011 11:25:44 +0100 Message-ID: Subject: Fwd: [PATCH 03/11] atmel-mci: use dmaengine helper functions From: Linus Walleij To: Patch Tracking ---------- Forwarded message ---------- From: Linus Walleij 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 Cc: Dan Williams , Nicolas Ferre , Linus Walleij Use the new dmaengine helpers to make the code more readable. Signed-off-by: Linus Walleij ---  drivers/mmc/host/atmel-mci.c |    6 +++---  1 files changed, 3 insertions(+), 3 deletions(-) -- 1.7.4 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);        }  }