]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/macintosh/windfarm_cpufreq_clamp.c
[PATCH] powerpc: Fix old g5 issues with windfarm
[karo-tx-linux.git] / drivers / macintosh / windfarm_cpufreq_clamp.c
index 607dbaca69c96fbb2172556bc4a14e5ca72f93d6..81337cd16e80d1fc80f87ee17fb82aa88a03d00f 100644 (file)
@@ -8,6 +8,8 @@
 #include <linux/wait.h>
 #include <linux/cpufreq.h>
 
+#include <asm/prom.h>
+
 #include "windfarm.h"
 
 #define VERSION "0.3"
@@ -74,6 +76,12 @@ static int __init wf_cpufreq_clamp_init(void)
 {
        struct wf_control *clamp;
 
+       /* Don't register on old machines that use therm_pm72 for now */
+       if (machine_is_compatible("PowerMac7,2") ||
+           machine_is_compatible("PowerMac7,3") ||
+           machine_is_compatible("RackMac3,1"))
+               return -ENODEV;
+
        clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL);
        if (clamp == NULL)
                return -ENOMEM;