From: Tony Breeds Date: Tue, 11 Mar 2008 23:48:48 +0000 (+1100) Subject: [POWERPC] Fix undefined pmu_sys_suspended compilation error X-Git-Tag: v2.6.25-rc6~30^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=07c941d00087581c9553661c2c4fb593da37f525;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Paul Mackerras --- diff --git a/include/linux/pmu.h b/include/linux/pmu.h index 4c5f65392d3..b02b57c0fba 100644 --- a/include/linux/pmu.h +++ b/include/linux/pmu.h @@ -192,7 +192,7 @@ extern unsigned int pmu_power_flags; extern void pmu_backlight_init(void); /* some code needs to know if the PMU was suspended for hibernation */ -#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_PPC32) +#if defined(CONFIG_SUSPEND) && defined(CONFIG_PPC32) extern int pmu_sys_suspended; #else /* if power management is not configured it can't be suspended */