macintosh: Use of_node_name_{eq, prefix} for node name comparisons
[linux-2.6-microblaze.git] / drivers / macintosh / windfarm_smu_controls.c
index 86d6546..2cb9652 100644 (file)
@@ -267,7 +267,7 @@ static int __init smu_controls_init(void)
 
        /* Look for RPM fans */
        for (fans = NULL; (fans = of_get_next_child(smu, fans)) != NULL;)
-               if (!strcmp(fans->name, "rpm-fans") ||
+               if (of_node_name_eq(fans, "rpm-fans") ||
                    of_device_is_compatible(fans, "smu-rpm-fans"))
                        break;
        for (fan = NULL;
@@ -287,7 +287,7 @@ static int __init smu_controls_init(void)
 
        /* Look for PWM fans */
        for (fans = NULL; (fans = of_get_next_child(smu, fans)) != NULL;)
-               if (!strcmp(fans->name, "pwm-fans"))
+               if (of_node_name_eq(fans, "pwm-fans"))
                        break;
        for (fan = NULL;
             fans && (fan = of_get_next_child(fans, fan)) != NULL;) {