|
@@ -845,10 +845,10 @@ struct device_node *of_find_matching_node_by_address(struct device_node *from,
|
|
struct resource res;
|
|
struct resource res;
|
|
|
|
|
|
while (dn) {
|
|
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;
|
|
return dn;
|
|
|
|
+
|
|
dn = of_find_matching_node(dn, matches);
|
|
dn = of_find_matching_node(dn, matches);
|
|
}
|
|
}
|
|
|
|
|