X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=blobdiff_plain;f=drivers%2Fof%2Fbase.c;h=f720c0d246f2706f16ed9a1a84125314096653ed;hp=48e941f99558e737b846c1bdb18ad83f778fd94c;hb=9e5f3ffcf1cb34e7c7beb3f79a96f58536730924;hpb=942baad211336efefb93a8369478888ab845c450 diff --git a/drivers/of/base.c b/drivers/of/base.c index 48e941f99558..f720c0d246f2 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -708,9 +708,7 @@ static struct device_node *__of_get_next_child(const struct device_node *node, return NULL; next = prev ? prev->sibling : node->child; - for (; next; next = next->sibling) - if (of_node_get(next)) - break; + of_node_get(next); of_node_put(prev); return next; } @@ -1821,6 +1819,7 @@ int of_add_property(struct device_node *np, struct property *prop) return rc; } +EXPORT_SYMBOL_GPL(of_add_property); int __of_remove_property(struct device_node *np, struct property *prop) {