aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/therm_adt746x.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-05-03 03:26:52 -0400
committerPaul Mackerras <paulus@samba.org>2007-05-07 06:31:14 -0400
commit55b61fec22caa3e7872caea6c4100fc75cb8f49b (patch)
tree995c2cf733bbd9ee1adc6e77773b0e31e9c21267 /drivers/macintosh/therm_adt746x.c
parentd9333afd6a714760c13f76ba275a32ec7bd979c1 (diff)
[POWERPC] Rename device_is_compatible to of_device_is_compatible
for consistency with other Open Firmware interfaces (and Sparc). This is just a straight replacement. This leaves the compatibility define in place. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh/therm_adt746x.c')
-rw-r--r--drivers/macintosh/therm_adt746x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c
index 228903403cfc..178afa1fd56c 100644
--- a/drivers/macintosh/therm_adt746x.c
+++ b/drivers/macintosh/therm_adt746x.c
@@ -560,9 +560,9 @@ thermostat_init(void)
560 np = of_find_node_by_name(NULL, "fan"); 560 np = of_find_node_by_name(NULL, "fan");
561 if (!np) 561 if (!np)
562 return -ENODEV; 562 return -ENODEV;
563 if (device_is_compatible(np, "adt7460")) 563 if (of_device_is_compatible(np, "adt7460"))
564 therm_type = ADT7460; 564 therm_type = ADT7460;
565 else if (device_is_compatible(np, "adt7467")) 565 else if (of_device_is_compatible(np, "adt7467"))
566 therm_type = ADT7467; 566 therm_type = ADT7467;
567 else 567 else
568 return -ENODEV; 568 return -ENODEV;