From patchwork Fri May 3 14:32:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16663 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C08F523905 for ; Fri, 3 May 2013 14:34:40 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id bv4sf1233810qab.5 for ; Fri, 03 May 2013 07:34:30 -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=6nUVg+t63u2LYnnhP8XdbgeuBcyJ2lqepZBnN/Irer8=; b=hNfK8MNAN9NrrdnRPWiMsyR9wpzLV+o1DtVFZS54qFpL/ntygpSUQGtJy2FoDDi/D4 P4/cnkY5nWWu7V3OJzQhn4APd+rgUanlskJNaI6KuULNPmtFkcBs2pNe8KyyI+7cnsK3 f6oafnR/doaAdA+yxO7vGAN0LPWRgJz0EvNkWm2Zf7RBLQxD5K6ojA2JxVhzCgNpeRFi bx8CJNn7CkSdYngEdVNYR+b4JXL252jZt6U2iWAKLkYNa4oDO2xw1f8uWjK193xGaPyU 1WVCm3fPXU6DQz+TmtsuddtrHFRFuLs2NcZzcW//fcUFZRg7KLIErJnqKLRzec0zJFNf 0fgg== X-Received: by 10.236.133.98 with SMTP id p62mr8285085yhi.10.1367591670823; Fri, 03 May 2013 07:34:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.10 with SMTP id o10ls1799142qeo.69.gmail; Fri, 03 May 2013 07:34:30 -0700 (PDT) X-Received: by 10.58.37.165 with SMTP id z5mr3761659vej.12.1367591670619; Fri, 03 May 2013 07:34:30 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id ec8si5156081vdb.111.2013.05.03.07.34.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 07:34:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id gd11so1510270vcb.0 for ; Fri, 03 May 2013 07:34:30 -0700 (PDT) X-Received: by 10.58.144.170 with SMTP id sn10mr3715837veb.7.1367591670558; Fri, 03 May 2013 07:34:30 -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.58.127.98 with SMTP id nf2csp25221veb; Fri, 3 May 2013 07:34:29 -0700 (PDT) X-Received: by 10.180.212.46 with SMTP id nh14mr30180544wic.26.1367591669591; Fri, 03 May 2013 07:34:29 -0700 (PDT) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [2a00:1450:400c:c03::22c]) by mx.google.com with ESMTPS id y5si3606754wjx.121.2013.05.03.07.34.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 07:34:29 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::22c is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c03::22c; Received: by mail-we0-f172.google.com with SMTP id s10so1356360wey.31 for ; Fri, 03 May 2013 07:34:29 -0700 (PDT) X-Received: by 10.180.92.193 with SMTP id co1mr13605929wib.20.1367591669200; Fri, 03 May 2013 07:34:29 -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 o3sm17516019wia.2.2013.05.03.07.34.27 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 07:34:28 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, srinidhi.kasagar@stericsson.com, Lee Jones Subject: [PATCH 32/63] dmaengine: ste_dma40: Remove redundant address fetching function Date: Fri, 3 May 2013 15:32:18 +0100 Message-Id: <1367591569-32197-33-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1367591569-32197-1-git-send-email-lee.jones@linaro.org> References: <1367591569-32197-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnF7eFSxBWHakzyEL5f/YN/aWBwGTypM2RztUHUQ0t4MT6jknePEZdt40ddTZhqK9s3Ma4b X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 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 3ff6ea4..555d851 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -2253,24 +2253,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,