Re: fix modular compilation of pmu_battery

From: Josh Boyer
Date: Sat Jul 21 2007 - 21:57:21 EST


On 7/21/07, Dave Jones <davej@xxxxxxxxxx> wrote:
pmu_battery fails to compile as a module on ppc64.

ERROR: "pmu_batteries" [drivers/power/pmu_battery.ko] undefined!
ERROR: "pmu_battery_count" [drivers/power/pmu_battery.ko] undefined!
ERROR: "pmu_power_flags" [drivers/power/pmu_battery.ko] undefined!

Signed-off-by: Dave Jones <davej@xxxxxxxxxx>

--- linux-2.6.22.noarch/drivers/macintosh/via-pmu.c~ 2007-07-20 20:45:27.000000000 -0400
+++ linux-2.6.22.noarch/drivers/macintosh/via-pmu.c 2007-07-20 20:45:52.000000000 -0400
@@ -2842,10 +2842,10 @@ EXPORT_SYMBOL(pmu_wait_complete);
EXPORT_SYMBOL(pmu_suspend);
EXPORT_SYMBOL(pmu_resume);
EXPORT_SYMBOL(pmu_unlock);
-#if defined(CONFIG_PM) && defined(CONFIG_PPC32)
+#if defined(CONFIG_PM)
EXPORT_SYMBOL(pmu_enable_irled);
EXPORT_SYMBOL(pmu_battery_count);
EXPORT_SYMBOL(pmu_batteries);
EXPORT_SYMBOL(pmu_power_flags);
-#endif /* CONFIG_PM && CONFIG_PPC32 */
+#endif

Paul has a different fix for this pending on the linuxppc-dev list.

josh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/