[PATCH] powerpc: Fix old g5 issues with windfarm
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 3 Mar 2006 06:03:21 +0000 (17:03 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 3 Mar 2006 10:43:53 +0000 (21:43 +1100)
commitb55fafc5a800f27beedfdcf8bd1b6baa47e769a9
treedc651c5738f20b72cb17ef3fc33e2e27977e6372
parent0c2aca88bdac4254a13466fb108733d243a118b6
[PATCH] powerpc: Fix old g5 issues with windfarm

Some of the windfarm sensor modules can initialize on old machines that
don't have full windfarm support like non-dual core desktop G5s.
Unfortunately, by doing so, they would trigger a bug in their matching
algorithm causing them to attach to the wrong bus, thus triggering
issues with the i2c core and breaking the thermal driver.

This patch fixes the probing issue (so that they will work when a
windfarm port is done to these machines) and also prevents for now
windfarm to load at all on these machines that still use therm_pm72 to
avoid wasting resources.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/macintosh/windfarm_core.c
drivers/macintosh/windfarm_cpufreq_clamp.c
drivers/macintosh/windfarm_lm75_sensor.c
drivers/macintosh/windfarm_max6690_sensor.c
drivers/macintosh/windfarm_pm112.c