From: Kevin Hilman <khilman@deeprootsystems.com>
To: Charles Manning <manningc2@actrix.gen.nz>
Cc: linux-omap@vger.kernel.org
Subject: Re: Fix pm24xx.c compilation problem
Date: Wed, 22 Dec 2010 14:22:42 -0800 [thread overview]
Message-ID: <87zkrxo3bh.fsf@deeprootsystems.com> (raw)
In-Reply-To: <201012230919.26344.manningc2@actrix.gen.nz> (Charles Manning's message of "Thu, 23 Dec 2010 09:19:26 +1300")
Charles Manning <manningc2@actrix.gen.nz> writes:
> arch/arm/mach-omap2/pm24xx.c doesn't compile without CONFIG_SUSPEND
>
> diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c
> index aaeea49..ae6abda 100644
> --- a/arch/arm/mach-omap2/pm24xx.c
> +++ b/arch/arm/mach-omap2/pm24xx.c
> @@ -53,8 +53,8 @@
> #include <plat/powerdomain.h>
> #include <plat/clockdomain.h>
>
> -#ifdef CONFIG_SUSPEND
> static suspend_state_t suspend_state = PM_SUSPEND_ON;
> +#ifdef CONFIG_SUSPEND
> static inline bool is_suspending(void)
> {
> return (suspend_state != PM_SUSPEND_ON);
> @@ -314,6 +314,7 @@ static int omap2_pm_prepare(void)
>
> static int omap2_pm_suspend(void)
> {
> +#ifdef CONFIG_SUSPEND
> u32 wken_wkup, mir1;
>
> wken_wkup = prm_read_mod_reg(WKUP_MOD, PM_WKEN);
> @@ -329,7 +330,7 @@ static int omap2_pm_suspend(void)
>
> omap_writel(mir1, 0x480fe0a4);
> prm_write_mod_reg(wken_wkup, WKUP_MOD, PM_WKEN);
> -
> +#endif
> return 0;
> }
Indeed a bug, but not quite the right fix.
Like we do on OMAP3, all of the _begin, _enter, _suspend, and _end
fucntions can actually be left out when !CONFIG_SUSPEND.
Will send patch shortly.
Thanks for reporting this and proposing a fix.
Kevin
next prev parent reply other threads:[~2010-12-22 22:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 20:19 Fix pm24xx.c compilation problem Charles Manning
2010-12-22 22:22 ` Kevin Hilman [this message]
2010-12-22 22:53 ` Charles Manning
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=87zkrxo3bh.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=manningc2@actrix.gen.nz \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox