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: 10345241 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 C1CD160542 for ; Tue, 17 Apr 2018 14:30:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A425628534 for ; Tue, 17 Apr 2018 14:30:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F00228554; Tue, 17 Apr 2018 14:30:46 +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 2AA4E28534 for ; Tue, 17 Apr 2018 14:30:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752963AbeDQOal (ORCPT ); Tue, 17 Apr 2018 10:30:41 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:31318 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752888AbeDQOai (ORCPT ); Tue, 17 Apr 2018 10:30:38 -0400 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 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 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 xdSHT9gs+h+/ZrY4f34Du8Wmx9dYLWac38dk0fjxJrvF2iN32S0Ov2lndeDyuL7kE7PHplWd bB6bl9R79G1ZxejxeZNcAGsUl01Kak5mWWqRvl0CV8ae44sZC3q5K86deMXYwLiNs4uRk0NC wETi5N39rF2MXBxCAjsYJb4862CGcL4zSpxu/8UCU7V//Xyoqt2MEi13jrBDOL8YJZb+vcQK UsUmYCjRe7SPEcQWERCTuD2nE2wUs0ATk0Trg3VgRcICCRIvD0xk6mLk4GARUJV4tk4TJMwr YCXR/mkWO8Q2eYn3C+4zgpRwClhL7O8UARkjIbCATWL51YXMEDUuEj/P9zJB2MISr45vgeqV lni2aiMjhF0t0dnWxQ7R3MIo8WfaJTaIhLXE4eMXwe5hFuCT6Dj8lx1kmYQAr0RHmxBEiYfE n8OzoeY4Slx7+ZIF4uE+RonVpzazTWCUWsDIsIpRLLWgODc9tdiowFCvODG3uDQvXS85P3cT IzhmtVx3MM4453OIUYCDUYmHV2LHlSgh1sSy4srcQ4wSHMxKIrw7HwOFeFMSK6tSi/Lji0pz UosPMUpzsCiJ8zb4nokSEkhPLEnNTk0tSC2CyTJxcEo1MAovzNxut+zQ/T9S3xZWvgk9U3Al 9Mjsa5GtJ7J5LovVqCqmdiUyKIVM3MkdoKOkZmh+b/EenUN5D39t+VbAoCkTrFY0f1V8z4IC TvZvvxtDbT6s27mrXo5l0SMntqR/rPE/TbPvnrf7fOrFgm+Pz07k0FtbU3KufYbXifUq3PtO xT6bUybY46PEUpyRaKjFXFScCABGl8Co1QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t9jAV1u1mtRBg2/xS0W/3jOZLFxxnpW i6kPn7BZ9D9+zWxx/vwGdotNj6+xWsw4v4/JovHjTXaLtUfuslscftPO6sDlcX3JJ2aPTas6 2Tw2L6n36NuyitHj8ya5ANYoLpuU1JzMstQifbsErow9xxczFvRyV5w78YqxgXEbZxcjJ4eE gInE/vXzWbsYuTiEBHYySsz+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> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.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 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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); }