From patchwork Mon Apr 16 15:40:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 10343321 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D13B96039A for ; Mon, 16 Apr 2018 15:41:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1AAF28785 for ; Mon, 16 Apr 2018 15:41:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B637A2878F; Mon, 16 Apr 2018 15:41:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1C1B28787 for ; Mon, 16 Apr 2018 15:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751169AbeDPPlM (ORCPT ); Mon, 16 Apr 2018 11:41:12 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:32531 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbeDPPlL (ORCPT ); Mon, 16 Apr 2018 11:41:11 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180416154109epoutp044e9b8f67370b843d6b1f6cacc3b1e132~l9Nrb-77l3184731847epoutp04E; Mon, 16 Apr 2018 15:41:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180416154109epoutp044e9b8f67370b843d6b1f6cacc3b1e132~l9Nrb-77l3184731847epoutp04E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523893269; bh=LNyvMfs1jVLSeIH6lf2zxre/X1ST68uD//ZM5XZuJXo=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=HafBYtURyZcCxs1lKMW6n+mAZK1ou4XtywoWsy8OH2CvOGBKwo03+zuuntmg+lZPO WXYxOUZYB+zTLXFL7Nw/BIhIuGHdnbR8BTMFaZ306cWSSHDSrjqgyH8bJGrh8+bpLP jO1Jgi7PuLEkVH/mRH1SdjYV7x8KbUxYa+8kGR/8= Received: from epsmges2p3.samsung.com (unknown [182.195.42.71]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180416154109epcas2p39e2b13ea72b4e3594723bae24bc73275~l9NrMR9vQ1443714437epcas2p33; Mon, 16 Apr 2018 15:41:09 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 2E.A3.04072.514C4DA5; Tue, 17 Apr 2018 00:41:09 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20180416154109epcas2p1696b9cdc72403fe5abdd0a2117067c8d~l9Nq0iAdQ2175021750epcas2p1H; Mon, 16 Apr 2018 15:41:09 +0000 (GMT) X-AuditID: b6c32a47-0fbff70000000fe8-66-5ad4c4150ff7 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id F1.AF.03827.414C4DA5; Tue, 17 Apr 2018 00:41:09 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P7A004PTBJEDK00@mmp2.samsung.com>; Tue, 17 Apr 2018 00:41:08 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Cc: andi@etezian.org, krzk@kernel.org, kgene@kernel.org, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com, b.zolnierkie@samsung.com, Sylwester Nawrocki Subject: [PATCH 2/6] spi: spi-s3c64xx: Remove unused s3c64xx_spi_hwinit() function argument Date: Mon, 16 Apr 2018 17:40:17 +0200 Message-id: <20180416154021.25626-2-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20180416154021.25626-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsWy7bCmma7okStRBmc/yFgs/vGcyWLjjPWs FlMfPmGz6H/8mtni/PkN7BabHl9jtZhxfh+TRePHm+wWa4/cZbc4/Kad1YHL4/qST8wem1Z1 snlsXlLv0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBm7d35hLFjDVTHl0iW2BsZbHF2MnBwS AiYSv45+YQKxhQR2MEp8f5PTxcgFZH9nlGjb844dpmjzzOXMEIkNjBKrdr1lhXB+MUpc/38a rJ1NwFCi92gfI4gtIiAmcXtOJ1gHs0ATk0Trg3VAHRwcwgKxEpPOaoDUsAioSpzf8ogNxOYV sJa4e+YmE8Q2eYn3C+6DzeEUsJE4/vck2BwJgQVsErcnTYYqcpF4e/8ZlC0s8er4FqhTpSWe rdrICGFXS3S2dbFDNLcwSvyZdokNImEtcfj4RVYQm1mAT6Lj8F92kOMkBHglOtqEIEo8JH4s XgVV7ijxfNVnqI/7GSWuNP9mmsAotYCRYRWjWGpBcW56arFRgbFecWJucWleul5yfu4mRnDM arnvYNx2zucQowAHoxIPr8SOK1FCrIllxZW5hxglOJiVRHjnHwIK8aYkVlalFuXHF5XmpBYf YpTmYFES523wPRMlJJCeWJKanZpakFoEk2Xi4JRqYKye2/XbXWJW44pXpw57XFp4rmPdrLf6 nndso8x0fN4668XsOW7LmvP67PKftXNbm754zDZvO7VYIVhHse6tb2Z77btH9qEFVZdvqzZx 7dty6pD4K+OZu0wqk8qe56Y5eHlvnmN3eXWj26tOFoOfx1/yl3joz1xd0Sdb/jXjkY/GBZuv hhlTNiuxFGckGmoxFxUnAgAppjOG1QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFLMWRmVeSWpSXmKPExsVy+t9jQV3RI1eiDH49ZbFY/OM5k8XGGetZ LaY+fMJm0f/4NbPF+fMb2C02Pb7GajHj/D4mi8aPN9kt1h65y25x+E07qwOXx/Uln5g9Nq3q ZPPYvKTeo2/LKkaPz5vkAlijuGxSUnMyy1KL9O0SuDJ27/zCWLCGq2LKpUtsDYy3OLoYOTkk BEwkNs9cztzFyMUhJLCOUWLfuy42COcXo8T75x3MIFVsAoYSvUf7GEFsEQExidtzOsE6mAWa mCTef/4M5HBwCAvESkw6qwFSwyKgKnF+yyM2EJtXwFri7pmbTBDb5CXeL7gPNodTwEbi+N+T YPOFgGquLH3NOoGRZwEjwypGydSC4tz03GKjAqO81HK94sTc4tK8dL3k/NxNjMAQ23ZYq38H 4+Ml8YcYBTgYlXh4JXZciRJiTSwrrsw9xCjBwawkwjv/EFCINyWxsiq1KD++qDQntfgQozQH i5I4L3/+sUghgfTEktTs1NSC1CKYLBMHp1QDI2e6aGIfb8iBV1VBy1suPHb+c//s8YeLRbR7 glgeNP0uv/z8nMQW9ZcTHz0SMksQWiS4ifVkQKeY4xkGuabfs8tstrDO1a68Y1n0t2HzEhu1 xbo8vfIsXWtmmn0MjFZ6mWoy1dg+at3ZPWf0+XKql+o82jfFpvGX//X5z5el7bA4Y7Ri30rP JiWW4oxEQy3mouJEAGY4XWwtAgAA X-CMS-MailID: 20180416154109epcas2p1696b9cdc72403fe5abdd0a2117067c8d X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180416154109epcas2p1696b9cdc72403fe5abdd0a2117067c8d X-RootMTR: 20180416154109epcas2p1696b9cdc72403fe5abdd0a2117067c8d References: <20180416154021.25626-1-s.nawrocki@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The channel argument is not used and anyway it could be retrieved from the passed driver data structure. Signed-off-by: Sylwester Nawrocki Reviewed-by: Andi Shyti Reviewed-by: Krzysztof Kozlowski --- drivers/spi/spi-s3c64xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index f7ca7ed33e1e..b7333a883442 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -889,7 +889,7 @@ static irqreturn_t s3c64xx_spi_irq(int irq, void *data) return IRQ_HANDLED; } -static void s3c64xx_spi_hwinit(struct s3c64xx_spi_driver_data *sdd, int channel) +static void s3c64xx_spi_hwinit(struct s3c64xx_spi_driver_data *sdd) { struct s3c64xx_spi_info *sci = sdd->cntrlr_info; void __iomem *regs = sdd->regs; @@ -1143,7 +1143,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) pm_runtime_get_sync(&pdev->dev); /* Setup Deufult Mode */ - s3c64xx_spi_hwinit(sdd, sdd->port_id); + s3c64xx_spi_hwinit(sdd); spin_lock_init(&sdd->lock); init_completion(&sdd->xfer_completion); @@ -1258,7 +1258,7 @@ static int s3c64xx_spi_resume(struct device *dev) if (ret < 0) return ret; - s3c64xx_spi_hwinit(sdd, sdd->port_id); + s3c64xx_spi_hwinit(sdd); return spi_master_resume(master); }