From: Stephen Rothwell Date: Wed, 9 May 2007 16:19:51 +0000 (+1000) Subject: [POWERPC] pmu_sys_suspended is only defined for PPC32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49d687b636c1f7e9a14faab7bd654f9fb88ecd11;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [POWERPC] pmu_sys_suspended is only defined for PPC32 thus we get a link error on ppc64 with CONFIG_PM=y. This fixes it. Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras --- diff --git a/include/linux/pmu.h b/include/linux/pmu.h index 37ca57392add..5ad913ff02b2 100644 --- a/include/linux/pmu.h +++ b/include/linux/pmu.h @@ -226,7 +226,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 */ -#ifdef CONFIG_PM +#if defined(CONFIG_PM) && defined(CONFIG_PPC32) extern int pmu_sys_suspended; #else /* if power management is not configured it can't be suspended */