Thread (1 message) 1 message, 1 author, 2011-06-10

[PATCH v4 1/4] dt: check root nodes for match on of_platform_populate

From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-06-10 21:06:48
Also in: linux-devicetree

On Friday 10 June 2011 22:48:40 Rob Herring wrote:
quoted hunk
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 9b785be..dc56a77 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -318,6 +318,8 @@ int of_platform_populate(struct device_node *root,
                return -EINVAL;
 
        for_each_child_of_node(root, child) {
+               if (!of_match_node(matches, child))
+                       continue;
                rc = of_platform_bus_create(child, matches, parent, true);
                if (rc)
                        break;

Why doesn't of_platform_populate just call of_platform_bus_create on the
root node? That should normally take care of matching all children.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help