From patchwork Wed Apr 10 22:19:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2423611 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3BCA43FD8C for ; Wed, 10 Apr 2013 22:19:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763171Ab3DJWTx (ORCPT ); Wed, 10 Apr 2013 18:19:53 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:59752 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919Ab3DJWTw (ORCPT ); Wed, 10 Apr 2013 18:19:52 -0400 Received: from axis700.grange (dslb-088-077-164-159.pools.arcor-ip.net [88.77.164.159]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M0dvG-1Uj6O83vCQ-00uGWO; Thu, 11 Apr 2013 00:19:51 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 5089240BB3; Thu, 11 Apr 2013 00:19:50 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1UQ3Mr-0000az-UA; Thu, 11 Apr 2013 00:19:49 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Cc: Vinod Koul , Magnus Damm , linux-kernel@vger.kernel.org, Guennadi Liakhovetski Subject: [PATCH 1/6] DMA: shdma: (cosmetic) don't re-calculate a pointer Date: Thu, 11 Apr 2013 00:19:44 +0200 Message-Id: <1365632389-2249-2-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1365632389-2249-1-git-send-email-g.liakhovetski@gmx.de> References: <1365632389-2249-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:Ono1JfIrMK/9hp2WsV1Bi6mFBatSWS37OzU9nJnppAL SKue98f80atPQDdRPoainkIcgQH8KVmamzTHHX/m8EbSndoNW9 kX7iDRjTcRFE9bhyMQ9cazWq/3YcH3S8Sk1UjemICZcK9jmgP3 icQ5BuvmypQQrLC1FAZBLvEkQ38iI1tTlzceqkODE/KUYpdgKm m19hueRfQFIy/Cl6M/3bYyefXaUCjh2/75S11wD2hu3thxmg6o tbESeR8/+wgGOLngexuoEdCixRWGsEVaRfy96l/ne8jO8bLutx 4Q9u0vkX/DAqOSqTPYSSgB5mqrssd1LObVrP7jRs+L7/tUf4Ze k8jvlKCV7YUbRls1DunBbCkdUWxj5U02KrhoNismKCEEsHT3a3 DiWDr5RxSAFqA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Use an existing pointer instead of retrieving it again. Signed-off-by: Guennadi Liakhovetski --- drivers/dma/sh/shdma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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;