From patchwork Tue Mar 18 10:58:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 3847921 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 4E11EBF540 for ; Tue, 18 Mar 2014 10:59:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7867C20386 for ; Tue, 18 Mar 2014 10:59:28 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0392220148 for ; Tue, 18 Mar 2014 10:59:27 +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 1WPrjt-0008WM-KZ; Tue, 18 Mar 2014 10:59:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WPrjr-00067m-8p; Tue, 18 Mar 2014 10:59:19 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WPrjn-00066X-N5 for linux-arm-kernel@lists.infradead.org; Tue, 18 Mar 2014 10:59:17 +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 <0N2M00DCQP62XP40@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 18 Mar 2014 19:58:50 +0900 (KST) X-AuditID: cbfee61b-b7f456d000006dfd-72-532826eac6cd Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 84.7C.28157.AE628235; Tue, 18 Mar 2014 19:58:50 +0900 (KST) Received: from amdc1032.localnet ([106.116.147.136]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2M0011NP5U8J30@mmp2.samsung.com>; Tue, 18 Mar 2014 19:58:50 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Viresh Kumar Subject: [PATCH RESEND] ARM: SPEAr1340: static-ize SATA functions Date: Tue, 18 Mar 2014 11:58:27 +0100 Message-id: <1678906.b5uh0Nm7QE@amdc1032> User-Agent: KMail/4.8.4 (Linux/3.2.0-54-generic-pae; KDE/4.8.5; i686; ; ) MIME-version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsVy+t9jQd1XahrBBksW81rMWb+GzeJs0xt2 i02Pr7FaHNvxiMni8q45bBYN3T3sFnNmbGa1WHnxL7MDh8fOWXfZPU7M+M3icfLCSRaPzUvq Pfq2rGL0ePpjL7PH501yAexRXDYpqTmZZalF+nYJXBlT5j9hKljNVbF2yy7mBsabHF2MnBwS AiYSHacnsELYYhIX7q1n62Lk4hASmM4o8ezjYXYIp4VJYsG91ywgVWwCVhIT21cxgtgiApoS /zZdYwEpYhb4wyixvvUCG0hCWMBR4v7yo8wgNouAqsT1vtlAkzg4eIEafvaKg4RFBTwldmxf CVbOKyAo8WPyPbD5zALyEvv2T2WFsLUk1u88zjSBkW8WkrJZSMpmISlbwMi8ilE0tSC5oDgp PddIrzgxt7g0L10vOT93EyM4pJ9J72Bc1WBxiFGAg1GJh/cFm3qwEGtiWXFl7iFGCQ5mJRHe EyIawUK8KYmVValF+fFFpTmpxYcYpTlYlMR5D7ZaBwoJpCeWpGanphakFsFkmTg4pRoYZeVb PDZOm3P2yw2L1SKFCu+Zn3w/4ar/a30dv1fU7Qkfk31DhdarChkp7dayM1OeIsWgkHT7h2hl YbGQltkmsxlHrr3XLGUW9Su8YdDA8XruopUlvrs+ZvB1ua+M3FiV8P4809NDXFJnjK8XKk8J TebiPdHwjrG75WHCj6Rv9f1Tkm7/KuhQYinOSDTUYi4qTgQAX68BVmUCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140318_065915_988555_32DE9668 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: linux-ide@vger.kernel.org, spear-devel@list.st.com, linux-kernel@vger.kernel.org, Shiraz Hashim , Kyungmin Park , Andrew Morton , 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 Acked-by: Viresh Kumar --- Previous submission: https://lkml.org/lkml/2013/10/4/369 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;