Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807AbbKJLwi (ORCPT ); Tue, 10 Nov 2015 06:52:38 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:58695 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752586AbbKJLwg (ORCPT ); Tue, 10 Nov 2015 06:52:36 -0500 X-AuditID: cbfee691-f79d66d000001509-0c-5641da8218d9 From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kgene.kim@samsung.com, k.kozlowski@samsung.com, thomas.ab@samsung.com, amitdanielk@gmail.com, olof@lixom.net, khilman@linaro.org, arnd@arndb.de, Pankaj Dubey 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 9s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YHPJK 4g2NTcxNjU0tTSxMzCyVxHn1PY3ChATSE0tSs1NTC1KLYPqYODilGhgnmnt4aki0HvfJVv2S 3KW13KomTVFDwP7S0qkJM30fKtu3R8zPuP29eqvR1/XnX93Vkz1sf8TktMvOeQrG12R8EhdP W3lXUrWhLvukdEnxZ0u9vRf9q6/kqZ9e7ummr3V2ZrOA4hsXn6qDS+NeC6u3cRrmSbEyzPMO +CVyM1/SMz4lfNc3HiWW4oxEQy3mouJEAOUvNLXWAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1789 Lines: 68 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) { -- 2.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/