aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/windfarm_smu_controls.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/macintosh/windfarm_smu_controls.c')
-rw-r--r--drivers/macintosh/windfarm_smu_controls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/windfarm_smu_controls.c b/drivers/macintosh/windfarm_smu_controls.c
index 86d65462a61c..2cb9652a9998 100644
--- a/drivers/macintosh/windfarm_smu_controls.c
+++ b/drivers/macintosh/windfarm_smu_controls.c
@@ -267,7 +267,7 @@ static int __init smu_controls_init(void)
267 267
268 /* Look for RPM fans */ 268 /* Look for RPM fans */
269 for (fans = NULL; (fans = of_get_next_child(smu, fans)) != NULL;) 269 for (fans = NULL; (fans = of_get_next_child(smu, fans)) != NULL;)
270 if (!strcmp(fans->name, "rpm-fans") || 270 if (of_node_name_eq(fans, "rpm-fans") ||
271 of_device_is_compatible(fans, "smu-rpm-fans")) 271 of_device_is_compatible(fans, "smu-rpm-fans"))
272 break; 272 break;
273 for (fan = NULL; 273 for (fan = NULL;
@@ -287,7 +287,7 @@ static int __init smu_controls_init(void)
287 287
288 /* Look for PWM fans */ 288 /* Look for PWM fans */
289 for (fans = NULL; (fans = of_get_next_child(smu, fans)) != NULL;) 289 for (fans = NULL; (fans = of_get_next_child(smu, fans)) != NULL;)
290 if (!strcmp(fans->name, "pwm-fans")) 290 if (of_node_name_eq(fans, "pwm-fans"))
291 break; 291 break;
292 for (fan = NULL; 292 for (fan = NULL;
293 fans && (fan = of_get_next_child(fans, fan)) != NULL;) { 293 fans && (fan = of_get_next_child(fans, fan)) != NULL;) {