From patchwork Wed May 1 16:01:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16558 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8E7E323942 for ; Wed, 1 May 2013 16:01:23 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id db10sf2933524veb.1 for ; Wed, 01 May 2013 09:01:18 -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 :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=mCcM0FLXrjuZCxI9J+WXB5swEMb1y0CtECf13hp6yMM=; b=lHDspFS6cvZMMxkCTkRgExZ5EVlTTjlcihR7JSgPGlTWLVSkYvznVL87PxOqtR2o/o vp2xe3sZJNY/WozqPssIiaWd6jQ20G8mL6KBdz5v6JqYM/drjlOMxe0nOrLQCiKcRqzo b7iZysBV+Lb5ExRAv95u62wKd+mj181+ACh98lhOs22s/4Ycu1aVn+js9AYVdAxb7ZnK aV7ErRFOC1PaEan9IhzS8f98R8p9S8dJMWwecIN5R4TgGZG+B5Gy8lBgpRv6yXEb/4Cd hfRkWjPkOo47IOQ1hBeOvrYxXc5/UvuJONzPo9/rC0QqTyxHhTiqpMnX/3NHPtMEqLUn BL4g== X-Received: by 10.58.250.38 with SMTP id yz6mr2512508vec.5.1367424078147; Wed, 01 May 2013 09:01:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.87.103 with SMTP id w7ls774862qez.83.gmail; Wed, 01 May 2013 09:01:17 -0700 (PDT) X-Received: by 10.59.3.9 with SMTP id bs9mr1000025ved.38.1367424077944; Wed, 01 May 2013 09:01:17 -0700 (PDT) Received: from mail-vb0-x231.google.com (mail-vb0-x231.google.com [2607:f8b0:400c:c02::231]) by mx.google.com with ESMTPS id bs2si1437701veb.5.2013.05.01.09.01.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 May 2013 09:01:17 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::231 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:c02::231; Received: by mail-vb0-f49.google.com with SMTP id 12so1322802vbf.8 for ; Wed, 01 May 2013 09:01:17 -0700 (PDT) X-Received: by 10.52.166.103 with SMTP id zf7mr851444vdb.94.1367424077855; Wed, 01 May 2013 09:01:17 -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 nf2csp160945veb; Wed, 1 May 2013 09:01:17 -0700 (PDT) X-Received: by 10.181.11.164 with SMTP id ej4mr3375334wid.29.1367424076681; Wed, 01 May 2013 09:01:16 -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 bk9si811989wjb.198.2013.05.01.09.01.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 May 2013 09:01:16 -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 r6so1364345wey.3 for ; Wed, 01 May 2013 09:01:15 -0700 (PDT) X-Received: by 10.180.90.203 with SMTP id by11mr3424251wib.10.1367424075799; Wed, 01 May 2013 09:01:15 -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 eu18sm23228424wid.1.2013.05.01.09.01.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 May 2013 09:01:14 -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, vinod.koul@intel.com, per.forlin@stericsson.com, rabin@rab.in, Lee Jones Subject: [PATCH] dmaengine: ste_dma40: Remove redundant address fetching function Date: Wed, 1 May 2013 17:01:10 +0100 Message-Id: <1367424070-326-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmucBZ7PmtGz5DBWb9LKF2aC1c0yCQqCh8nWSVRPkqNV/s6bgeqjSooGQfALrnMhdzKYvGf X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::231 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 f00a428..18d9e12 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -2250,24 +2250,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,