From: Vaibhav Bedia <vaibhav.bedia@ti.com> To: kevin@ti.com, b-cousson@ti.com, paul@pswan.com Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vaibhav Bedia <vaibhav.bedia@ti.com> Subject: [RFC][PATCH 1/1] ARM: OMAP2+: PM: Register suspend ops even in the presence of DT blob Date: Wed, 18 Jul 2012 16:07:30 +0530 [thread overview] Message-ID: <1342607850-12071-1-git-send-email-vaibhav.bedia@ti.com> (raw) As per the comment in omap2_common_late_init() looks like the original intent of the DT check was to treat only the PMIC and SR initialization differently. Recent changes to consolidate the suspend-resume code across OMAP3/4 resulted into the registration of suspend ops also being dependent on the check for DT blob. Since the suspend-resume operation should not really be dependent on the usage of DT, move the suspend ops registration before the check for DT. Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com> --- arch/arm/mach-omap2/pm.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 9cb5ced..21761c0 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -297,6 +297,10 @@ postcore_initcall(omap2_common_pm_init); int __init omap2_common_pm_late_init(void) { +#ifdef CONFIG_SUSPEND + suspend_set_ops(&omap_pm_ops); +#endif + /* * In the case of DT, the PMIC and SR initialization will be done using * a completely different mechanism. @@ -316,9 +320,5 @@ int __init omap2_common_pm_late_init(void) /* Smartreflex device init */ omap_devinit_smartreflex(); -#ifdef CONFIG_SUSPEND - suspend_set_ops(&omap_pm_ops); -#endif - return 0; } -- 1.7.0.4
WARNING: multiple messages have this Message-ID (diff)
From: vaibhav.bedia@ti.com (Vaibhav Bedia) To: linux-arm-kernel@lists.infradead.org Subject: [RFC][PATCH 1/1] ARM: OMAP2+: PM: Register suspend ops even in the presence of DT blob Date: Wed, 18 Jul 2012 16:07:30 +0530 [thread overview] Message-ID: <1342607850-12071-1-git-send-email-vaibhav.bedia@ti.com> (raw) As per the comment in omap2_common_late_init() looks like the original intent of the DT check was to treat only the PMIC and SR initialization differently. Recent changes to consolidate the suspend-resume code across OMAP3/4 resulted into the registration of suspend ops also being dependent on the check for DT blob. Since the suspend-resume operation should not really be dependent on the usage of DT, move the suspend ops registration before the check for DT. Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com> --- arch/arm/mach-omap2/pm.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 9cb5ced..21761c0 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -297,6 +297,10 @@ postcore_initcall(omap2_common_pm_init); int __init omap2_common_pm_late_init(void) { +#ifdef CONFIG_SUSPEND + suspend_set_ops(&omap_pm_ops); +#endif + /* * In the case of DT, the PMIC and SR initialization will be done using * a completely different mechanism. @@ -316,9 +320,5 @@ int __init omap2_common_pm_late_init(void) /* Smartreflex device init */ omap_devinit_smartreflex(); -#ifdef CONFIG_SUSPEND - suspend_set_ops(&omap_pm_ops); -#endif - return 0; } -- 1.7.0.4
next reply other threads:[~2012-07-18 10:38 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-18 10:37 Vaibhav Bedia [this message] 2012-07-18 10:37 ` [RFC][PATCH 1/1] ARM: OMAP2+: PM: Register suspend ops even in the presence of DT blob Vaibhav Bedia
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1342607850-12071-1-git-send-email-vaibhav.bedia@ti.com \ --to=vaibhav.bedia@ti.com \ --cc=b-cousson@ti.com \ --cc=kevin@ti.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=paul@pswan.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.