summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/of/address.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/of/address.c')
-rw-r--r--kernel/drivers/of/address.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/drivers/of/address.c b/kernel/drivers/of/address.c
index 8bfda6ade..384574c39 100644
--- a/kernel/drivers/of/address.c
+++ b/kernel/drivers/of/address.c
@@ -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);
}