[POWERPC] Fix build of modular drivers/macintosh/apm_emu.c
authorGuido Guenther <agx@sigxcpu.org>
Sat, 8 Mar 2008 19:20:17 +0000 (06:20 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 12 Mar 2008 23:09:27 +0000 (10:09 +1100)
commit620a245978d007279bc5c7c64e15f5f63af9af98
tree0f5cebd2cb73c779b9c97c172789114f3152fa53
parentfa19d63488bd108a308f575064779bb69123efbc
[POWERPC] Fix build of modular drivers/macintosh/apm_emu.c

Currently, if drivers/macintosh/apm_emu is a module and the config
doesn't have CONFIG_SUSPEND we get:

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.  This removes the
CONFIG_SUSPEND part of the export, which fixes compilation on ppc32.

Signed-off-by: Guido Guenther <agx@sigxcpu.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/macintosh/via-pmu.c