of: Use of_node_name_eq for node name comparisons
[linux-2.6-block.git] / drivers / of / resolver.c
index 7edfac6f1914459f135af8d96823ea338770c6a6..c1b67dd7cd6eed61c75e9fe4234565dd9c329c5b 100644 (file)
@@ -281,7 +281,7 @@ int of_resolve_phandles(struct device_node *overlay)
        adjust_overlay_phandles(overlay, phandle_delta);
 
        for_each_child_of_node(overlay, local_fixups)
-               if (!of_node_cmp(local_fixups->name, "__local_fixups__"))
+               if (of_node_name_eq(local_fixups, "__local_fixups__"))
                        break;
 
        err = adjust_local_phandle_references(local_fixups, overlay, phandle_delta);
@@ -291,7 +291,7 @@ int of_resolve_phandles(struct device_node *overlay)
        overlay_fixups = NULL;
 
        for_each_child_of_node(overlay, child) {
-               if (!of_node_cmp(child->name, "__fixups__"))
+               if (of_node_name_eq(child, "__fixups__"))
                        overlay_fixups = child;
        }