From patchwork Tue Nov 10 11:43:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 7589791 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3C5FEC05C6 for ; Tue, 10 Nov 2015 11:56:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E3F52053B for ; Tue, 10 Nov 2015 11:56:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 789D920499 for ; Tue, 10 Nov 2015 11:56:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zw7Vb-0002LV-8Z; Tue, 10 Nov 2015 11:54:43 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zw7VN-0001sS-Bb for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2015 11:54:38 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NXL01O3DKZMMBB0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2015 20:52:34 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.122]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id AF.DB.05385.28AD1465; Tue, 10 Nov 2015 20:52:34 +0900 (KST) X-AuditID: cbfee691-f79d66d000001509-0c-5641da8218d9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 40.EF.23663.28AD1465; Tue, 10 Nov 2015 20:52:34 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NXL0077JKNPME50@mmp1.samsung.com>; Tue, 10 Nov 2015 20:52:34 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 8/9] ARM: EXYNOS: rearrange static and non-static functions of PMU driver Date: Tue, 10 Nov 2015 17:13:03 +0530 Message-id: <1447155784-12667-9-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.4.5 In-reply-to: <1447155784-12667-1-git-send-email-pankaj.dubey@samsung.com> References: <1447155784-12667-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGLMWRmVeSWpSXmKPExsWyRsSkSrfplmOYwaSrlhYfV79ks/g76Ri7 xesXhha9C66yWXw9vILRYtPja6wWl3fNYbOYcX4fk8Wp65/ZLBZt/cJu0bGM0YHb4/evSYwe O2fdZfe4c20Pm8fmJfUeV040sXr0bVnF6PF5k1wAexSXTUpqTmZZapG+XQJXxofPJQXHeSpe Xb3N1sC4gquLkZNDQsBE4sC17awQtpjEhXvr2boYuTiEBFYwSiz+9JAVpmjFqxPsEImljBL7 V4F0gDitTBLvlhxmBKliE9CVePJ+LjOILSKQLXGl8T4zSBGzwAFGiR3rXoEVCQvESfzYtxms iEVAVeLDxV9gK3gFPCS+NSxm6mLkAFonJ7G0uRYkzCngKdGz9CYTiC0EVPL++T2wxRICx9gl 9s5ZxQYxR0Di2+RDLBC9shKbDjBDXC0pcXDFDZYJjMILGBlWMYqmFiQXFCelF5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nmnt4aki0HvfJVv2S 3KW13KomTVFDwP7S0qkJM30fKtu3R8zPuP29eqvR1/XnX93Vkz1sf8TktMvOeQrG12R8EhdP W3lXUrWhLvukdEnxZ0u9vRf9q6/kqZ9e7ummr3V2ZrOA4hsXn6qDS+NeC6u3cRrmSbEyzPMO +CVyM1/SMz4lfNc3HiWW4oxEQy3mouJEAOUvNLXWAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151110_035429_997484_3A82D30D X-CRM114-Status: GOOD ( 11.47 ) X-Spam-Score: -7.2 (-------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: amitdanielk@gmail.com, k.kozlowski@samsung.com, kgene.kim@samsung.com, arnd@arndb.de, khilman@linaro.org, Pankaj Dubey , thomas.ab@samsung.com, olof@lixom.net MIME-Version: 1.0 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.5 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 This patch moves exynos_sys_powerdown_conf function above all static functions. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/pmu.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c index e01bdf1..f300ac9 100644 --- a/arch/arm/mach-exynos/pmu.c +++ b/arch/arm/mach-exynos/pmu.c @@ -39,23 +39,6 @@ u32 pmu_raw_readl(u32 offset) return readl_relaxed(pmu_base_addr + offset); } -static void exynos_power_off(void) -{ - unsigned int tmp; - - pr_info("Power down.\n"); - tmp = pmu_raw_readl(EXYNOS_PS_HOLD_CONTROL); - tmp ^= (1 << 8); - pmu_raw_writel(tmp, EXYNOS_PS_HOLD_CONTROL); - - /* Wait a little so we don't give a false warning below */ - mdelay(100); - - pr_err("Power down failed, please power off system manually.\n"); - while (1) - ; -} - void exynos_sys_powerdown_conf(enum sys_powerdown mode) { unsigned int i; @@ -85,6 +68,23 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) } } +static void exynos_power_off(void) +{ + unsigned int tmp; + + pr_info("Power down.\n"); + tmp = pmu_raw_readl(EXYNOS_PS_HOLD_CONTROL); + tmp ^= (1 << 8); + pmu_raw_writel(tmp, EXYNOS_PS_HOLD_CONTROL); + + /* Wait a little so we don't give a false warning below */ + mdelay(100); + + pr_err("Power down failed, please power off system manually.\n"); + while (1) + ; +} + static int pmu_restart_notify(struct notifier_block *this, unsigned long code, void *unused) {