From patchwork Fri Oct 4 17:42:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 2989771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A2C78BF923 for ; Fri, 4 Oct 2013 17:43:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11593201C8 for ; Fri, 4 Oct 2013 17:43:13 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1191B2017B for ; Fri, 4 Oct 2013 17:43:12 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VS9PA-0007Yz-4b; Fri, 04 Oct 2013 17:43:08 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VS9P7-0002nx-S9; Fri, 04 Oct 2013 17:43:05 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VS9P3-0002me-Th for linux-arm-kernel@lists.infradead.org; Fri, 04 Oct 2013 17:43:03 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MU500953NUZH900@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Sat, 05 Oct 2013 02:42:37 +0900 (KST) X-AuditID: cbfee61b-b7f776d0000016c8-ca-524efe0c233d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 10.13.05832.C0EFE425; Sat, 05 Oct 2013 02:42:36 +0900 (KST) Received: from amdc1032.localnet ([106.116.147.136]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MU500CERNUZC940@mmp1.samsung.com>; Sat, 05 Oct 2013 02:42:36 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Viresh Kumar Subject: [PATCH] ARM: SPEAr1340: static-ize SATA functions Date: Fri, 04 Oct 2013 19:42:31 +0200 Message-id: <2240706.IfNdWNvgId@amdc1032> User-Agent: KMail/4.8.4 (Linux/3.2.0-52-generic-pae; KDE/4.8.5; i686; ; ) MIME-version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsVy+t9jAV2ef35BBof/WVicbXrDbrHp8TVW i2M7HjFZXN41h82iobuH3WLOjM2sFisv/mV2YPfYOesuu8fJCydZPDYvqffo27KK0ePpj73M Hp83yQWwRXHZpKTmZJalFunbJXBl/OuZwFzwjrPi+5GlLA2Mizm6GDk5JARMJG4+ecgCYYtJ XLi3nq2LkYtDSGARo8SiP3+ZIZwWJol/776yg1SxCVhJTGxfxQhiiwhoSvzbdI0FpIhZ4Dyj xLrZU1hBEsJARUevTGcCsVkEVCW2zfnNDGLzAjUcv/cJbJ2ogKfEp0lLoeKCEj8m3wOLMwvI S+zbP5UVwtaSWL/zONMERr5ZSMpmISmbhaRsASPzKkbR1ILkguKk9FwjveLE3OLSvHS95Pzc TYzgAH4mvYNxVYPFIUYBDkYlHl6LM35BQqyJZcWVuYcYJTiYlUR4Q38BhXhTEiurUovy44tK c1KLDzFKc7AoifMebLUOFBJITyxJzU5NLUgtgskycXBKNTCynUma8mOtmNFEgf/LTW/IZrBn ZSWznH0Y0l49L+0pU8D/PdPSVObL1POwib4Ulv6qIblh+5vTq+KfqBw+IpSzIOrJhhsbzT2n mfUlFyqar8pJvOlxojDn+4IOOxady1/6bWMmCPWkLdB9FHNYTprNpUI+wrx7qfb/JuWdS5ff usFzd/efLBYlluKMREMt5qLiRABmGG8nXAIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131004_134302_187277_F3DC5A0F X-CRM114-Status: UNSURE ( 8.40 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.5 (-------) Cc: linux-ide@vger.kernel.org, spear-devel@list.st.com, linux-kernel@vger.kernel.org, Shiraz Hashim , Kyungmin Park , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make sata_miphy_exit(), sata_suspend() and sata_resume() static. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park --- arch/arm/mach-spear/spear1340.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-spear/spear1340.c b/arch/arm/mach-spear/spear1340.c index 3fb6834..e0e4251 100644 --- a/arch/arm/mach-spear/spear1340.c +++ b/arch/arm/mach-spear/spear1340.c @@ -93,7 +93,7 @@ static int sata_miphy_init(struct device *dev, void __iomem *addr) return 0; } -void sata_miphy_exit(struct device *dev) +static void sata_miphy_exit(struct device *dev) { writel(0, SPEAR1340_PCIE_SATA_CFG); writel(0, SPEAR1340_PCIE_MIPHY_CFG); @@ -107,7 +107,7 @@ void sata_miphy_exit(struct device *dev) msleep(20); } -int sata_suspend(struct device *dev) +static int sata_suspend(struct device *dev) { if (dev->power.power_state.event == PM_EVENT_FREEZE) return 0; @@ -117,7 +117,7 @@ int sata_suspend(struct device *dev) return 0; } -int sata_resume(struct device *dev) +static int sata_resume(struct device *dev) { if (dev->power.power_state.event == PM_EVENT_THAW) return 0;