diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-05-03 03:26:52 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 06:31:14 -0400 |
commit | 55b61fec22caa3e7872caea6c4100fc75cb8f49b (patch) | |
tree | 995c2cf733bbd9ee1adc6e77773b0e31e9c21267 /drivers/macintosh | |
parent | d9333afd6a714760c13f76ba275a32ec7bd979c1 (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')
-rw-r--r-- | drivers/macintosh/smu.c | 2 | ||||
-rw-r--r-- | drivers/macintosh/therm_adt746x.c | 4 | ||||
-rw-r--r-- | drivers/macintosh/via-pmu.c | 10 | ||||
-rw-r--r-- | drivers/macintosh/windfarm_lm75_sensor.c | 4 | ||||
-rw-r--r-- | drivers/macintosh/windfarm_max6690_sensor.c | 2 | ||||
-rw-r--r-- | drivers/macintosh/windfarm_smu_controls.c | 2 | ||||
-rw-r--r-- | drivers/macintosh/windfarm_smu_sat.c | 2 |
7 files changed, 13 insertions, 13 deletions
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c index a98a328b1cfc..f8e1a135bf9d 100644 --- a/drivers/macintosh/smu.c +++ b/drivers/macintosh/smu.c | |||
@@ -606,7 +606,7 @@ static void smu_expose_childs(struct work_struct *unused) | |||
606 | struct device_node *np; | 606 | struct device_node *np; |
607 | 607 | ||
608 | for (np = NULL; (np = of_get_next_child(smu->of_node, np)) != NULL;) | 608 | for (np = NULL; (np = of_get_next_child(smu->of_node, np)) != NULL;) |
609 | if (device_is_compatible(np, "smu-sensors")) | 609 | if (of_device_is_compatible(np, "smu-sensors")) |
610 | of_platform_device_create(np, "smu-sensors", | 610 | of_platform_device_create(np, "smu-sensors", |
611 | &smu->of_dev->dev); | 611 | &smu->of_dev->dev); |
612 | } | 612 | } |
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; |
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 1729d3fd7a11..0707624dfad3 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -310,14 +310,14 @@ int __init find_via_pmu(void) | |||
310 | PMU_INT_TICK; | 310 | PMU_INT_TICK; |
311 | 311 | ||
312 | if (vias->parent->name && ((strcmp(vias->parent->name, "ohare") == 0) | 312 | if (vias->parent->name && ((strcmp(vias->parent->name, "ohare") == 0) |
313 | || device_is_compatible(vias->parent, "ohare"))) | 313 | || of_device_is_compatible(vias->parent, "ohare"))) |
314 | pmu_kind = PMU_OHARE_BASED; | 314 | pmu_kind = PMU_OHARE_BASED; |
315 | else if (device_is_compatible(vias->parent, "paddington")) | 315 | else if (of_device_is_compatible(vias->parent, "paddington")) |
316 | pmu_kind = PMU_PADDINGTON_BASED; | 316 | pmu_kind = PMU_PADDINGTON_BASED; |
317 | else if (device_is_compatible(vias->parent, "heathrow")) | 317 | else if (of_device_is_compatible(vias->parent, "heathrow")) |
318 | pmu_kind = PMU_HEATHROW_BASED; | 318 | pmu_kind = PMU_HEATHROW_BASED; |
319 | else if (device_is_compatible(vias->parent, "Keylargo") | 319 | else if (of_device_is_compatible(vias->parent, "Keylargo") |
320 | || device_is_compatible(vias->parent, "K2-Keylargo")) { | 320 | || of_device_is_compatible(vias->parent, "K2-Keylargo")) { |
321 | struct device_node *gpiop; | 321 | struct device_node *gpiop; |
322 | struct device_node *adbp; | 322 | struct device_node *adbp; |
323 | u64 gaddr = OF_BAD_ADDR; | 323 | u64 gaddr = OF_BAD_ADDR; |
diff --git a/drivers/macintosh/windfarm_lm75_sensor.c b/drivers/macintosh/windfarm_lm75_sensor.c index ab4d1b63f63e..a0fabf3c2008 100644 --- a/drivers/macintosh/windfarm_lm75_sensor.c +++ b/drivers/macintosh/windfarm_lm75_sensor.c | |||
@@ -188,10 +188,10 @@ static int wf_lm75_attach(struct i2c_adapter *adapter) | |||
188 | if (loc == NULL || addr == 0) | 188 | if (loc == NULL || addr == 0) |
189 | continue; | 189 | continue; |
190 | /* real lm75 */ | 190 | /* real lm75 */ |
191 | if (device_is_compatible(dev, "lm75")) | 191 | if (of_device_is_compatible(dev, "lm75")) |
192 | wf_lm75_create(adapter, addr, 0, loc); | 192 | wf_lm75_create(adapter, addr, 0, loc); |
193 | /* ds1775 (compatible, better resolution */ | 193 | /* ds1775 (compatible, better resolution */ |
194 | else if (device_is_compatible(dev, "ds1775")) | 194 | else if (of_device_is_compatible(dev, "ds1775")) |
195 | wf_lm75_create(adapter, addr, 1, loc); | 195 | wf_lm75_create(adapter, addr, 1, loc); |
196 | } | 196 | } |
197 | return 0; | 197 | return 0; |
diff --git a/drivers/macintosh/windfarm_max6690_sensor.c b/drivers/macintosh/windfarm_max6690_sensor.c index eaa74afa175b..5f03aab9fb5d 100644 --- a/drivers/macintosh/windfarm_max6690_sensor.c +++ b/drivers/macintosh/windfarm_max6690_sensor.c | |||
@@ -131,7 +131,7 @@ static int wf_max6690_attach(struct i2c_adapter *adapter) | |||
131 | */ | 131 | */ |
132 | if (!pmac_i2c_match_adapter(dev, adapter)) | 132 | if (!pmac_i2c_match_adapter(dev, adapter)) |
133 | continue; | 133 | continue; |
134 | if (!device_is_compatible(dev, "max6690")) | 134 | if (!of_device_is_compatible(dev, "max6690")) |
135 | continue; | 135 | continue; |
136 | addr = pmac_i2c_get_dev_addr(dev); | 136 | addr = pmac_i2c_get_dev_addr(dev); |
137 | loc = of_get_property(dev, "hwsensor-location", NULL); | 137 | loc = of_get_property(dev, "hwsensor-location", NULL); |
diff --git a/drivers/macintosh/windfarm_smu_controls.c b/drivers/macintosh/windfarm_smu_controls.c index ff398adc0283..58c2590f05ec 100644 --- a/drivers/macintosh/windfarm_smu_controls.c +++ b/drivers/macintosh/windfarm_smu_controls.c | |||
@@ -263,7 +263,7 @@ static int __init smu_controls_init(void) | |||
263 | /* Look for RPM fans */ | 263 | /* Look for RPM fans */ |
264 | for (fans = NULL; (fans = of_get_next_child(smu, fans)) != NULL;) | 264 | for (fans = NULL; (fans = of_get_next_child(smu, fans)) != NULL;) |
265 | if (!strcmp(fans->name, "rpm-fans") || | 265 | if (!strcmp(fans->name, "rpm-fans") || |
266 | device_is_compatible(fans, "smu-rpm-fans")) | 266 | of_device_is_compatible(fans, "smu-rpm-fans")) |
267 | break; | 267 | break; |
268 | for (fan = NULL; | 268 | for (fan = NULL; |
269 | fans && (fan = of_get_next_child(fans, fan)) != NULL;) { | 269 | fans && (fan = of_get_next_child(fans, fan)) != NULL;) { |
diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index 9a6c2cf8fd0e..1043b39aa123 100644 --- a/drivers/macintosh/windfarm_smu_sat.c +++ b/drivers/macintosh/windfarm_smu_sat.c | |||
@@ -380,7 +380,7 @@ static int wf_sat_attach(struct i2c_adapter *adapter) | |||
380 | busnode = pmac_i2c_get_bus_node(bus); | 380 | busnode = pmac_i2c_get_bus_node(bus); |
381 | 381 | ||
382 | while ((dev = of_get_next_child(busnode, dev)) != NULL) | 382 | while ((dev = of_get_next_child(busnode, dev)) != NULL) |
383 | if (device_is_compatible(dev, "smu-sat")) | 383 | if (of_device_is_compatible(dev, "smu-sat")) |
384 | wf_sat_create(adapter, dev); | 384 | wf_sat_create(adapter, dev); |
385 | return 0; | 385 | return 0; |
386 | } | 386 | } |