aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pmu.h
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2008-03-11 19:48:48 -0400
committerPaul Mackerras <paulus@samba.org>2008-03-12 19:09:27 -0400
commit07c941d00087581c9553661c2c4fb593da37f525 (patch)
treecf42b46916b39b02d31d2013b9d57eb38762d574 /include/linux/pmu.h
parent620a245978d007279bc5c7c64e15f5f63af9af98 (diff)
[POWERPC] Fix undefined pmu_sys_suspended compilation error
pmu_sys_suspended is declared extern when: defined(CONFIG_PM_SLEEP) && defined(CONFIG_PPC32) but only defined when: defined(CONFIG_SUSPEND) && defined(CONFIG_PPC32) which is wrong. Let's fix that. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/linux/pmu.h')
-rw-r--r--include/linux/pmu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pmu.h b/include/linux/pmu.h
index 4c5f65392d36..b02b57c0fba0 100644
--- a/include/linux/pmu.h
+++ b/include/linux/pmu.h
@@ -192,7 +192,7 @@ extern unsigned int pmu_power_flags;
192extern void pmu_backlight_init(void); 192extern void pmu_backlight_init(void);
193 193
194/* some code needs to know if the PMU was suspended for hibernation */ 194/* some code needs to know if the PMU was suspended for hibernation */
195#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_PPC32) 195#if defined(CONFIG_SUSPEND) && defined(CONFIG_PPC32)
196extern int pmu_sys_suspended; 196extern int pmu_sys_suspended;
197#else 197#else
198/* if power management is not configured it can't be suspended */ 198/* if power management is not configured it can't be suspended */