From: Colin Leroy This patch limits therm_adt746x to currently existing fan controllers in Apple laptops. It may avoid problems with future hardware. Signed-off-by: Colin Leroy Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton --- drivers/macintosh/therm_adt746x.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -puN drivers/macintosh/therm_adt746x.c~make-sure-therm_adt746x-only-handles-known-hardware drivers/macintosh/therm_adt746x.c --- 25/drivers/macintosh/therm_adt746x.c~make-sure-therm_adt746x-only-handles-known-hardware Fri May 6 15:14:26 2005 +++ 25-akpm/drivers/macintosh/therm_adt746x.c Fri May 6 15:14:26 2005 @@ -545,6 +545,12 @@ thermostat_init(void) else return -ENODEV; + prop = (u32 *)get_property(np, "hwsensor-params-version", NULL); + printk(KERN_INFO "adt746x: version %d (%ssupported)\n", *prop, + (*prop == 1)?"":"un"); + if (*prop != 1) + return -ENODEV; + prop = (u32 *)get_property(np, "reg", NULL); if (!prop) return -ENODEV; _