From patchwork Fri Nov 13 09:29:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 7609261 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 092059F1C2 for ; Fri, 13 Nov 2015 09:34:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28763207E6 for ; Fri, 13 Nov 2015 09:34:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0FDC207DA for ; Fri, 13 Nov 2015 09:34:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754525AbbKMJeU (ORCPT ); Fri, 13 Nov 2015 04:34:20 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:40423 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754816AbbKMJdW (ORCPT ); Fri, 13 Nov 2015 04:33:22 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NXQ01SOEYJL6X70@mailout1.samsung.com>; Fri, 13 Nov 2015 18:33:21 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.123]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id C2.39.05272.06EA5465; Fri, 13 Nov 2015 18:33:20 +0900 (KST) X-AuditID: cbfee68e-f791c6d000001498-a0-5645ae609213 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id CA.DF.23663.06EA5465; Fri, 13 Nov 2015 18:33:20 +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 <0NXQ002KAYHMWY40@mmp1.samsung.com>; Fri, 13 Nov 2015 18:33:20 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.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 v5 8/9] ARM: EXYNOS: rearrange static and non-static functions of PMU driver Date: Fri, 13 Nov 2015 14:59:42 +0530 Message-id: <1447406983-27835-9-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.4.5 In-reply-to: <1447406983-27835-1-git-send-email-pankaj.dubey@samsung.com> References: <1447406983-27835-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNLMWRmVeSWpSXmKPExsWyRsSkWjdxnWuYQYOgxcfVL9ks/k46xm7x +oWhRe+Cq2wWXw+vYLTY9Pgaq8XlXXPYLD73HmG0mHF+H5PFqeuf2SwWbf3CbtGxjNGBx+P3 r0mMHjtn3WX3uHNtD5vH5iX1HldONLF69G1ZxejxeZNcAHsUl01Kak5mWWqRvl0CV8aXCd2s Bf95K1Y83sPawHiCu4uRk0NCwETiTftsdghbTOLCvfVsXYxcHEICKxglli94wQpTdH1mEztE YimjxKtLtxlBEkICrUwSS+4lgthsAroST97PZQYpEhFoZZRYtv8/E4jDLHCAUWLHuldgHcIC cRJ3vrWBjWURUJVY1buLBcTmFfCQmLZnKpDNAbROTmJpcy1ImFPAU+L51IXMEMs8JI4vPMsI MlNC4BK7RGPLEqg5AhLfJh+C6pWV2HSAGeJqSYmDK26wTGAUXsDIsIpRNLUguaA4K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i2D6mDg4pRoYJc1slRKc j5TbNxb4fuH0DrrOpPzeXPQCI28Zy3rR2fUP5ol0PpU1+dTO55F5tbEtWK/eeMUZhqC8dzyq 9kvOn7Z8Icl84dxOW+36b+/38h+5udC1XkPa+9NWrbAtvR/+sWZvK7z3pbyj4Khsn4jX5GPr 3K+/K4zyMMzTVll7r0/oE9tPoY1KLMUZiYZazEXFiQD/2VuL3AIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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, to avoid confusion causing due to mixing of static-nonstatic-static functions and to improve readability of this driver. Signed-off-by: Pankaj Dubey Suggested-by: Krzysztof Kozlowski Reviewed-by: Krzysztof Kozlowski --- 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 01cb649..a7741d4 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) {