diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2010-12-22 23:04:17 +0000 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-12-22 15:13:39 -0800 |
commit | 05fad3e72e98e57274b8930a08f8b476048f5022 (patch) | |
tree | 5ba5d745e5a975ed4a55bb6252c8471c20baaeea /arch/arm/mach-omap2/pm24xx.c | |
parent | 1c4655651f1377297425525b250b2e4b5462015b (diff) | |
download | linux-stable-05fad3e72e98e57274b8930a08f8b476048f5022.tar.gz linux-stable-05fad3e72e98e57274b8930a08f8b476048f5022.tar.bz2 linux-stable-05fad3e72e98e57274b8930a08f8b476048f5022.zip |
OMAP2: PM: fix compile error when !CONFIG_SUSPEND
When CONFIG_SUSPEND is not enabled, none of the system PM methods are
used, so do not compile them in.
Thanks to Charles Manning for reporting the problem and proposing
an initial patch.
Reported-by: Charles Manning <manningc2@actrix.gen.nz>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm24xx.c')
-rw-r--r-- | arch/arm/mach-omap2/pm24xx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index 2844b84f8d46..dac2d1d9987d 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c @@ -299,6 +299,7 @@ out: local_irq_enable(); } +#ifdef CONFIG_SUSPEND static int omap2_pm_begin(suspend_state_t state) { disable_hlt(); @@ -355,6 +356,9 @@ static struct platform_suspend_ops omap_pm_ops = { .end = omap2_pm_end, .valid = suspend_valid_only_mem, }; +#else +static const struct platform_suspend_ops __initdata omap_pm_ops; +#endif /* CONFIG_SUSPEND */ /* XXX This function should be shareable between OMAP2xxx and OMAP3 */ static int __init clkdms_setup(struct clockdomain *clkdm, void *unused) |