Commit 07c941d00087581c9553661c2c4fb593da37f525
Committed by
Paul Mackerras
1 parent
620a245978
Exists in
master
and in
7 other branches
[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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
include/linux/pmu.h
... | ... | @@ -192,7 +192,7 @@ |
192 | 192 | extern void pmu_backlight_init(void); |
193 | 193 | |
194 | 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) | |
196 | 196 | extern int pmu_sys_suspended; |
197 | 197 | #else |
198 | 198 | /* if power management is not configured it can't be suspended */ |