X-Git-Url: http://git.rot13.org/?p=powerpc.git;a=blobdiff_plain;f=drivers%2Fmacintosh%2Ftherm_adt746x.c;h=bd55e6ab99fc536164fe0c5b72a107fb6b6012f3;hp=6c3734325f8e6ace4f37698e322d2b66edeaee83;hb=df6d3916f3b7b7e2067567a256dd4f0c1ea854a2;hpb=74add80cbd7fe246c893b93ee75ac59acdd01dd4 diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index 6c3734325f..bd55e6ab99 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c @@ -559,9 +559,9 @@ thermostat_init(void) np = of_find_node_by_name(NULL, "fan"); if (!np) return -ENODEV; - if (device_is_compatible(np, "adt7460")) + if (of_device_is_compatible(np, "adt7460")) therm_type = ADT7460; - else if (device_is_compatible(np, "adt7467")) + else if (of_device_is_compatible(np, "adt7467")) therm_type = ADT7467; else return -ENODEV;