From patchwork Tue Apr 17 14:29:49 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: 10345281 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 A2A09601D7 for ; Tue, 17 Apr 2018 14:32:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8709D2841F for ; Tue, 17 Apr 2018 14:32:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85A4C28372; Tue, 17 Apr 2018 14:32:57 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B6B612841F for ; Tue, 17 Apr 2018 14:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=bngomq3L6aC1uEpDEkg6XGjPsT8S6oNivvYORrUCYII=; b=MOuSiL7s/g0qOhMx+hfYvTD2yn IFCzQ88/rQk6s7d2VYl53M9SR+dFJMPa5H9Bl5C3KYl/S4i8LqyYt07NPtMbMC48gsH0O/wG30hkC bkKiPkyz1qI+RVM1pvefY25xc+d4nr0dl4AIr5oSZ2VC9Et0IoZhiCTB3NvGyR37xItNpzf3yi1PE MGf8KxHBh4Xhz13HfiUekhxpV5ulbFpigW4wHOoK9l31jNSj6xd8kxubvZuwPz/RdmSHeedrz72bX mCDFVdkJZPYwCfPZwHJsbcLyI9yMaaa1B1THbs6jw4osA0OcvWmljOaMpV+yp7w6S5fKGJxZMZs82 mMgxun8g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8Rf6-0001PL-OT; Tue, 17 Apr 2018 14:32:48 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8RdB-0000I6-G9 for linux-arm-kernel@lists.infradead.org; Tue, 17 Apr 2018 14:30:56 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20180417143036epoutp0312eb9b481a8a6a31852b54d8f5c3a693~mP5XiXhUj0051200512epoutp03e; Tue, 17 Apr 2018 14:30:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20180417143036epoutp0312eb9b481a8a6a31852b54d8f5c3a693~mP5XiXhUj0051200512epoutp03e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523975436; bh=jsaj9bqnC4AwjgXnZxUKm560aCLuvJhjNOnU8ZzeG3w=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=TthqJ6Zk9jA9tyAw20XdkdphHhNRf12JDsmu1C1psHVRd1J5wsXFW/kpOr7dIsSJr wOvnebg2r497WdawKj1kJOg/7CpFYU1HuNAPypQ2xKhzF8VFTWrpM3k0XPRWjPDZQi sT8HyKeI9brbDe0uMdJLGTWE/4Pag8q0vsarTl+0= Received: from epsmges2p1.samsung.com (unknown [182.195.42.69]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20180417143036epcas2p4dda60dcd40b6cd27c5b78360d91a8e57~mP5XUfGPF0807308073epcas2p4Z; Tue, 17 Apr 2018 14:30:36 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 10.E7.04068.C0506DA5; Tue, 17 Apr 2018 23:30:36 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180417143035epcas2p2959c3987da80bf28cacc603168204f4c~mP5WOgIO30136201362epcas2p2i; Tue, 17 Apr 2018 14:30:35 +0000 (GMT) X-AuditID: b6c32a45-6ebff70000000fe4-b5-5ad6050c5381 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 07.5E.03827.B0506DA5; Tue, 17 Apr 2018 23:30:35 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P7C0012A2Y8EI10@mmp1.samsung.com>; Tue, 17 Apr 2018 23:30:35 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Subject: [PATCH v2 3/8] spi: spi-s3c64xx: Remove unused s3c64xx_spi_hwinit() function argument Date: Tue, 17 Apr 2018 16:29:49 +0200 Message-id: <20180417142954.5507-3-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20180417142954.5507-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsWy7bCmmS4P67Uog7Y7qhaLfzxnstg4Yz2r xdSHT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YySsz+dJwZwvnFKPG+4yALSBWbgKFE79E+RhBbREBM4vacTrAiZoEm Jon3nz8zgySEBRIkXh6YyNTFyMHBIqAq8WydJkiYV8BKov3TLHaIbfIS7xfcZwQp4RSwltjf KQJiCgGVLPsnOIGRZwEjwypGydSC4tz03GKjAqO81HK94sTc4tK8dL3k/NxNjMDw2nZYq38H 4+Ml8YcYBTgYlXh4JXZciRJiTSwrrsw9xCjBwawkwrvzMVCINyWxsiq1KD++qDQntfgQozQH i5I4L3/+sUghgfTEktTs1NSC1CKYLBMHp1QDYyBb5b1dKU2PFkyPlAue1e+3a+di4e0Mv2Rv Wd58PDss7at3NoNHijf/P0H+S3wzmXiWhKkrpijvjrzCfzNyke0P7rulQQLmTmq7rrXN+eHL 75QZMn2e2MHEPWef8s44dkPg2cTW+IVvTm34dPbxIZa10rNuTE72Z3BWOM/cOfnIDud1a8Jq fZRYijMSDbWYi4oTAduVa2YrAgAA X-CMS-MailID: 20180417143035epcas2p2959c3987da80bf28cacc603168204f4c X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180417143035epcas2p2959c3987da80bf28cacc603168204f4c X-RootMTR: 20180417143035epcas2p2959c3987da80bf28cacc603168204f4c References: <20180417142954.5507-1-s.nawrocki@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180417_073049_750666_77D2490F X-CRM114-Status: GOOD ( 15.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki , b.zolnierkie@samsung.com, krzk@kernel.org, linux-spi@vger.kernel.org, kgene@kernel.org, andi@etezian.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The channel argument is not used and anyway the value could be retrieved from the passed driver data structure. Reviewed-by: Andi Shyti Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sylwester Nawrocki --- drivers/spi/spi-s3c64xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.14.2 diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index f0e28adbbc32..4c27426bcb40 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -891,7 +891,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; @@ -1145,7 +1145,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); @@ -1260,7 +1260,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); }