patch for compiling ppc without pmu

From: Johannes Berg
Date: Tue Aug 23 2005 - 06:18:14 EST


Hi,

This patch seems to be required to compile 2.6.13-rc6 for ppc configured
without PMU.

Apologies if it is already known, I haven't found anything like this
quickly.

Signed-Off-By: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

--- linux-2.6.13-rc6.orig/arch/ppc/platforms/pmac_time.c 2005-08-23 12:14:37.689485664 +0200
+++ linux-2.6.13-rc6/arch/ppc/platforms/pmac_time.c 2005-08-23 12:14:37.689485664 +0200
@@ -251,7 +251,7 @@
struct device_node *cpu;
unsigned int freq, *fp;

-#ifdef CONFIG_PM && CONFIG_ADB_PMU
+#if defined(CONFIG_PM) && defined(CONFIG_ADB_PMU)
pmu_register_sleep_notifier(&time_sleep_notifier);
#endif /* CONFIG_PM */


Attachment: signature.asc
Description: This is a digitally signed message part