Skip to content

Commit

Permalink
Don't compile the PMU power driver on 64-bit PowerPC
Browse files Browse the repository at this point in the history
As reported by Stephen Rothwell, an allmodconfig build on 64-bit
PowerPC reports these errors:

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!

This fixes the problem by not building pmu_battery.ko on ppc64.  There
are no battery-powered ppc64 machines with an Apple PMU, and we can be
reasonably confident there never will be.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Paul Mackerras authored and David Woodhouse committed Jul 23, 2007
1 parent f695baf commit a1da5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ config BATTERY_DS2760

config BATTERY_PMU
tristate "Apple PMU battery"
depends on ADB_PMU
depends on PPC32 && ADB_PMU
help
Say Y here to expose battery information on Apple machines
through the generic battery class.
Expand Down

0 comments on commit a1da5f4

Please sign in to comment.