]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/of/address.c
PCI: layerscape: Add support for LS1043a and LS2080a
[karo-tx-linux.git] / drivers / of / address.c
index 8bfda6ade2c02d3323533dee562dcb3b705a604e..384574c3987c337444181d68346ce9d95963f027 100644 (file)
@@ -845,10 +845,10 @@ struct device_node *of_find_matching_node_by_address(struct device_node *from,
        struct resource res;
 
        while (dn) {
-               if (of_address_to_resource(dn, 0, &res))
-                       continue;
-               if (res.start == base_address)
+               if (!of_address_to_resource(dn, 0, &res) &&
+                   res.start == base_address)
                        return dn;
+
                dn = of_find_matching_node(dn, matches);
        }