Skip to contentSkip to conversation

Don't compile the PMU power driver on 64-bit PowerPC

PATCH In review Paul Mackerras 2 participants 2 messages Jul 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Don't compile the PMU power driver on 64-bit PowerPC

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.

---

drivers/power/Kconfig +1 -1
index 3f6e176..58c806e 100644
@@ -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.
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Sun, 22 Jul 2007 10:46:54 +1000 Paul Mackerras <[email protected]> wrote:

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!

Quoted 5 lines

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.

That fixes it.

for what its worth :-)

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/