[PATCH] Export pmu_* variables unconditionally
From: Guido Günther <agx@sigxcpu.org>
Date: 2008-03-08 19:21:27
Subsystem:
linux for power macintosh, the rest · Maintainer:
Linus Torvalds
From: Guido Günther <agx@sigxcpu.org>
Date: 2008-03-08 19:21:27
Subsystem:
linux for power macintosh, the rest · Maintainer:
Linus Torvalds
Hi, This is a resend, since it's still unfixed in current Linus git and I didn't see any comments (please cc: me since I'm not subscribed): Otherwise without CONFIG_SUSPEND we have: ERROR: "pmu_batteries" [drivers/macintosh/apm_emu.ko] undefined! ERROR: "pmu_battery_count" [drivers/macintosh/apm_emu.ko] undefined! ERROR: "pmu_power_flags" [drivers/macintosh/apm_emu.ko] undefined! on PPC32. The variables aren't wrapped in '#if defined(CONFIG_SUSPEND)' so we probably shouldn't wrap the exports either. Fixes compilation on ppc32. Signed-off-by: Guido Guenther <agx@sigxcpu.org> --- drivers/macintosh/via-pmu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c
index 296edcb..399fc7f 100644
--- a/drivers/macintosh/via-pmu.c
+++ b/drivers/macintosh/via-pmu.c@@ -2528,7 +2528,7 @@ EXPORT_SYMBOL(pmu_wait_complete); EXPORT_SYMBOL(pmu_suspend); EXPORT_SYMBOL(pmu_resume); EXPORT_SYMBOL(pmu_unlock); -#if defined(CONFIG_SUSPEND) && defined(CONFIG_PPC32) +#if defined(CONFIG_PPC32) EXPORT_SYMBOL(pmu_enable_irled); EXPORT_SYMBOL(pmu_battery_count); EXPORT_SYMBOL(pmu_batteries);
--
1.5.4.2