• G
    [POWERPC] Fix build of modular drivers/macintosh/apm_emu.c · 620a2459
    Guido Guenther 提交于
    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: NGuido Guenther <agx@sigxcpu.org>
    Signed-off-by: NPaul Mackerras <paulus@samba.org>
    620a2459
via-pmu.c 60.1 KB