From patchwork Tue Jul 9 14:37:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 18288 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A5D325E49 for ; Tue, 9 Jul 2013 14:38:05 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id c1sf6924004qcz.1 for ; Tue, 09 Jul 2013 07:38:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to: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=wfyu5oKTKFycSTdJqITsAjXRrI+E/yO+pmkjSJdunYA=; b=S1rlnFB5qDYlbmS+TMyncBRFTWPLAaLbLy2G+C8QKX5Q7WwBAkDcSr+p5K+LBIEbSe o+7Ee6ligXj6fn/tm4PQlRKUpIM4hgi2FpPK3AVmVn9w2KTsVb4OTUjfpbGrv4nzaB0n bOR73DPl+1GjtN+Cp8eOwrKD+8Hc5xA//A2L6dIhjUJFjjRilgs9Pih4CHdiY3uzIPhr sXIKVgUeDwddlCF6iGSx6+zB4RMxo8KJdRllCSMGRi/8ccy2p3wI3zhXynyqPAyaJqZH aYf2DeRUUDxzWNV7gp1a2GBzdItlEC287WX3w4pmfPjufvht1WVzlgvLajmNdHjeTugp lKPg== X-Received: by 10.58.132.232 with SMTP id ox8mr2817680veb.18.1373380684667; Tue, 09 Jul 2013 07:38:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.132.197 with SMTP id ow5ls2282625qeb.97.gmail; Tue, 09 Jul 2013 07:38:04 -0700 (PDT) X-Received: by 10.221.9.68 with SMTP id ov4mr16571092vcb.6.1373380684560; Tue, 09 Jul 2013 07:38:04 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id i7si1941749vdv.125.2013.07.09.07.38.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Jul 2013 07:38:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jz10so4716594veb.17 for ; Tue, 09 Jul 2013 07:38:04 -0700 (PDT) X-Received: by 10.52.164.16 with SMTP id ym16mr13650786vdb.32.1373380684468; Tue, 09 Jul 2013 07:38:04 -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.149.77 with SMTP id s13csp33573vcv; Tue, 9 Jul 2013 07:38:03 -0700 (PDT) X-Received: by 10.180.78.98 with SMTP id a2mr31926166wix.27.1373380683527; Tue, 09 Jul 2013 07:38:03 -0700 (PDT) Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by mx.google.com with ESMTPS id ww9si8682388wjb.65.2013.07.09.07.38.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Jul 2013 07:38:03 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.179 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.179; Received: by mail-we0-f179.google.com with SMTP id w59so4887113wes.10 for ; Tue, 09 Jul 2013 07:38:03 -0700 (PDT) X-Received: by 10.195.12.133 with SMTP id eq5mr15389168wjd.27.1373380683121; Tue, 09 Jul 2013 07:38:03 -0700 (PDT) Received: from localhost.localdomain ([193.120.41.115]) by mx.google.com with ESMTPSA id b20sm30380125wiw.4.2013.07.09.07.38.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Jul 2013 07:38:02 -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, hi@hello.com, Guennadi Liakhovetski , Guennadi Liakhovetski , Vinod Koul Subject: [PATCH 1/3] DMA: shdma: (cosmetic) don't re-calculate a pointer Date: Tue, 9 Jul 2013 15:37:54 +0100 Message-Id: <1373380677-450-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1373380677-450-1-git-send-email-lee.jones@linaro.org> References: <1373380677-450-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlxSMJZdMDO1atl83XopgrzvzzQGaJSrPB0CvPFVc04w7aLwo6LpNBPXlvS6H7l9MSA9sLj X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 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: , From: Guennadi Liakhovetski Use an existing pointer instead of retrieving it again. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Vinod Koul --- drivers/dma/sh/shdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/sh/shdma.c b/drivers/dma/sh/shdma.c index b70709b..a5a1887 100644 --- a/drivers/dma/sh/shdma.c +++ b/drivers/dma/sh/shdma.c @@ -729,7 +729,7 @@ static int sh_dmae_probe(struct platform_device *pdev) goto eshdma; /* platform data */ - shdev->pdata = pdev->dev.platform_data; + shdev->pdata = pdata; if (pdata->chcr_offset) shdev->chcr_offset = pdata->chcr_offset;