From patchwork Wed May 15 09:51:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16925 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6EF942396C for ; Wed, 15 May 2013 09:53:05 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hr11sf183359vcb.7 for ; Wed, 15 May 2013 02:52:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=GRBHmA2ZhEecEORtlS//fTMIILPJpVyUmMFKyuhIuXo=; b=L2hi7V7VS/jJwfmzUV9BdOVMkMPf/j+THknN6UN/YRXrLCO7FH1HiqS8oEedb1qEJ+ 1VPGRW5IWAhxjdhN2rG0q0i/pCk/l1D3KlSl3XTXzYQvmR/rY8zRomzHCYqfzjQl3UaQ i1r/CtFcQb36N/2jOtv0rhJ6FNqUWevLJSG/cpdgeQklaSXRVZvsbEyn48BLSbFHJAoz 0uhpaE/nyuhd9diW1MRQcNGColHmRLtCjcm7DcLTbA1A2r2WpwXXyLdFUlKx+3adw0mu w+nI0yz0og0JZWBPK9trbeWorOfUA1kT2c67+G1DDWnwyoJAcTzj4a2gH6ce04lNK/cZ 4ggQ== X-Received: by 10.224.42.141 with SMTP id s13mr23056623qae.3.1368611548828; Wed, 15 May 2013 02:52:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.96.234 with SMTP id dv10ls682935qeb.87.gmail; Wed, 15 May 2013 02:52:28 -0700 (PDT) X-Received: by 10.58.45.71 with SMTP id k7mr24365782vem.0.1368611548688; Wed, 15 May 2013 02:52:28 -0700 (PDT) Received: from mail-ve0-x233.google.com (mail-ve0-x233.google.com [2607:f8b0:400c:c01::233]) by mx.google.com with ESMTPS id ty3si1043400vec.9.2013.05.15.02.52.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 May 2013 02:52:28 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::233; Received: by mail-ve0-f179.google.com with SMTP id oz10so1739697veb.24 for ; Wed, 15 May 2013 02:52:28 -0700 (PDT) X-Received: by 10.58.173.36 with SMTP id bh4mr24414666vec.9.1368611548335; Wed, 15 May 2013 02:52:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.217.15 with SMTP id hk15csp11323vcb; Wed, 15 May 2013 02:52:27 -0700 (PDT) X-Received: by 10.180.109.84 with SMTP id hq20mr13273829wib.11.1368611547281; Wed, 15 May 2013 02:52:27 -0700 (PDT) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [2a00:1450:400c:c00::22e]) by mx.google.com with ESMTPS id gt8si6878273wib.42.2013.05.15.02.52.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 May 2013 02:52:27 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::22e is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c00::22e; Received: by mail-wg0-f46.google.com with SMTP id n12so1351540wgh.25 for ; Wed, 15 May 2013 02:52:26 -0700 (PDT) X-Received: by 10.180.9.238 with SMTP id d14mr13258126wib.18.1368611546757; Wed, 15 May 2013 02:52:26 -0700 (PDT) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPSA id q13sm2898210wie.8.2013.05.15.02.52.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 May 2013 02:52:26 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, balbi@ti.com, linux-usb@vger.kernel.org, linux-crypto@vger.kernel.org, davem@davemloft.net, herbert@gondor.apana.org.au, vinod.koul@intel.com Cc: arnd@arndb.de, linus.walleij@stericsson.com, srinidhi.kasagar@stericsson.com, Lee Jones Subject: [PATCH 08/39] dmaengine: ste_dma40: Remove redundant address fetching function Date: Wed, 15 May 2013 10:51:31 +0100 Message-Id: <1368611522-9984-9-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368611522-9984-1-git-send-email-lee.jones@linaro.org> References: <1368611522-9984-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmOqUUgxArFOvd/pGtPJDI1G4XuGFXPeaqTm7jq8r+7+IHWBxc2f5Fb6ZUfR3QyEPtLuM3Z X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Addresses are now stored in local data structures and are easy to obtain, thus a specialist function used to fetch them is now surplus to requirement. Signed-off-by: Lee Jones --- drivers/dma/ste_dma40.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 57a127e..6ed7757 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -2267,24 +2267,6 @@ err: return NULL; } -static dma_addr_t -d40_get_dev_addr(struct d40_chan *chan, enum dma_transfer_direction direction) -{ - struct stedma40_platform_data *plat = chan->base->plat_data; - struct stedma40_chan_cfg *cfg = &chan->dma_cfg; - dma_addr_t addr = 0; - - if (chan->runtime_addr) - return chan->runtime_addr; - - if (direction == DMA_DEV_TO_MEM) - addr = plat->dev_rx[cfg->dev_type]; - else if (direction == DMA_MEM_TO_DEV) - addr = plat->dev_tx[cfg->dev_type]; - - return addr; -} - static struct dma_async_tx_descriptor * d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src, struct scatterlist *sg_dst, unsigned int sg_len,