From patchwork Sat Dec 6 02:50:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 5448901 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 004B49F30B for ; Sat, 6 Dec 2014 02:31:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0784B201C0 for ; Sat, 6 Dec 2014 02:31:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 1E9AF20145 for ; Sat, 6 Dec 2014 02:31:57 +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 1Xx57K-0005UE-9J; Sat, 06 Dec 2014 02:29:06 +0000 Received: from v094114.home.net.pl ([79.96.170.134]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xx57H-0005S9-Dv for linux-arm-kernel@lists.infradead.org; Sat, 06 Dec 2014 02:29:04 +0000 Received: from aeqt253.neoplus.adsl.tpnet.pl (79.191.175.253) (HELO vostro.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer v0.80) id 52b2a47be3bfa641; Sat, 6 Dec 2014 03:28:34 +0100 From: "Rafael J. Wysocki" To: Russell King Subject: [PATCH] ARM / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM Date: Sat, 06 Dec 2014 03:50:03 +0100 Message-ID: <2407638.dfZGaT4vm1@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/3.16.0-rc5+; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141205_182903_692934_FC471821 X-CRM114-Status: GOOD ( 10.71 ) X-Spam-Score: -0.0 (/) Cc: Kevin Hilman , Tony Lindgren , Will Deacon , Linux PM list , Sekhar Nori , Linux Kernel Mailing List , Santosh Shilimkar , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere in the code under arch/arm/ (the defconfig files will be modified later). Signed-off-by: Rafael J. Wysocki Acked-by: Nishanth Menon Acked-by: Sekhar Nori Acked-by: Santosh Shilimkar --- Note: This depends on commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) which is only in linux-next at the moment (via the linux-pm tree). Please let me know if it is OK to take this one into linux-pm. --- arch/arm/kernel/perf_event.c | 2 +- arch/arm/mach-davinci/pm_domain.c | 2 +- arch/arm/mach-keystone/pm_domain.c | 2 +- arch/arm/mach-omap1/pm_bus.c | 4 ++-- arch/arm/mach-omap2/io.c | 2 +- arch/arm/mach-omap2/omap_device.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) Index: linux-pm/arch/arm/kernel/perf_event.c =================================================================== --- linux-pm.orig/arch/arm/kernel/perf_event.c +++ linux-pm/arch/arm/kernel/perf_event.c @@ -481,7 +481,7 @@ static void armpmu_disable(struct pmu *p armpmu->stop(armpmu); } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int armpmu_runtime_resume(struct device *dev) { struct arm_pmu_platdata *plat = dev_get_platdata(dev); Index: linux-pm/arch/arm/mach-davinci/pm_domain.c =================================================================== --- linux-pm.orig/arch/arm/mach-davinci/pm_domain.c +++ linux-pm/arch/arm/mach-davinci/pm_domain.c @@ -14,7 +14,7 @@ #include #include -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int davinci_pm_runtime_suspend(struct device *dev) { int ret; Index: linux-pm/arch/arm/mach-keystone/pm_domain.c =================================================================== --- linux-pm.orig/arch/arm/mach-keystone/pm_domain.c +++ linux-pm/arch/arm/mach-keystone/pm_domain.c @@ -19,7 +19,7 @@ #include #include -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int keystone_pm_runtime_suspend(struct device *dev) { int ret; Index: linux-pm/arch/arm/mach-omap1/pm_bus.c =================================================================== --- linux-pm.orig/arch/arm/mach-omap1/pm_bus.c +++ linux-pm/arch/arm/mach-omap1/pm_bus.c @@ -21,7 +21,7 @@ #include "soc.h" -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int omap1_pm_runtime_suspend(struct device *dev) { int ret; @@ -59,7 +59,7 @@ static struct dev_pm_domain default_pm_d #define OMAP1_PM_DOMAIN (&default_pm_domain) #else #define OMAP1_PM_DOMAIN NULL -#endif /* CONFIG_PM_RUNTIME */ +#endif /* CONFIG_PM */ static struct pm_clk_notifier_block platform_bus_notifier = { .pm_domain = OMAP1_PM_DOMAIN, Index: linux-pm/arch/arm/mach-omap2/io.c =================================================================== --- linux-pm.orig/arch/arm/mach-omap2/io.c +++ linux-pm/arch/arm/mach-omap2/io.c @@ -359,7 +359,7 @@ static void __init omap_hwmod_init_posts u8 postsetup_state; /* Set the default postsetup state for all hwmods */ -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM postsetup_state = _HWMOD_STATE_IDLE; #else postsetup_state = _HWMOD_STATE_ENABLED; Index: linux-pm/arch/arm/mach-omap2/omap_device.c =================================================================== --- linux-pm.orig/arch/arm/mach-omap2/omap_device.c +++ linux-pm/arch/arm/mach-omap2/omap_device.c @@ -588,7 +588,7 @@ odbs_exit: return ERR_PTR(ret); } -#ifdef CONFIG_PM_RUNTIME +#ifdef CONFIG_PM static int _od_runtime_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev);