diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2010-12-22 18:04:17 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-12-22 18:13:39 -0500 |
commit | 05fad3e72e98e57274b8930a08f8b476048f5022 (patch) | |
tree | 5ba5d745e5a975ed4a55bb6252c8471c20baaeea /arch/arm/mach-omap2/pm24xx.c | |
parent | 1c4655651f1377297425525b250b2e4b5462015b (diff) |
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: | |||
299 | local_irq_enable(); | 299 | local_irq_enable(); |
300 | } | 300 | } |
301 | 301 | ||
302 | #ifdef CONFIG_SUSPEND | ||
302 | static int omap2_pm_begin(suspend_state_t state) | 303 | static int omap2_pm_begin(suspend_state_t state) |
303 | { | 304 | { |
304 | disable_hlt(); | 305 | disable_hlt(); |
@@ -355,6 +356,9 @@ static struct platform_suspend_ops omap_pm_ops = { | |||
355 | .end = omap2_pm_end, | 356 | .end = omap2_pm_end, |
356 | .valid = suspend_valid_only_mem, | 357 | .valid = suspend_valid_only_mem, |
357 | }; | 358 | }; |
359 | #else | ||
360 | static const struct platform_suspend_ops __initdata omap_pm_ops; | ||
361 | #endif /* CONFIG_SUSPEND */ | ||
358 | 362 | ||
359 | /* XXX This function should be shareable between OMAP2xxx and OMAP3 */ | 363 | /* XXX This function should be shareable between OMAP2xxx and OMAP3 */ |
360 | static int __init clkdms_setup(struct clockdomain *clkdm, void *unused) | 364 | static int __init clkdms_setup(struct clockdomain *clkdm, void *unused) |