]> git.karo-electronics.de Git - karo-tx-linux.git/commit
POWERPC: Fix build of modular drivers/macintosh/apm_emu.c
authorGuido Guenther <agx@sigxcpu.org>
Tue, 15 Apr 2008 13:45:51 +0000 (13:45 +0000)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:29 +0000 (18:53 -0700)
commit5cd82d4dd65bc2a7206352c7dcb0c1beea28136e
tree86c4c50e990538b6cfc8b92de452eb8f25bec411
parentf1e310c26a37a98efba28f6ea65f1f33f353786d
POWERPC: Fix build of modular drivers/macintosh/apm_emu.c

upstream commit: 620a245978d007279bc5c7c64e15f5f63af9af98

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>
mpagano@gentoo.org notes:

The details can be found at http://bugs.gentoo.org/show_bug.cgi?id=217629.

Cc: Mike Pagano <mpagano@gentoo.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/macintosh/via-pmu.c