]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/of/base.c
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / drivers / of / base.c
index f27d922eaece0a4228eb75b42b93368d6da57a64..b9864806e9b811a0c3cc3b0e16404a19fad271eb 100644 (file)
@@ -1961,9 +1961,9 @@ int of_attach_node(struct device_node *np)
 
        raw_spin_lock_irqsave(&devtree_lock, flags);
        np->sibling = np->parent->child;
-       np->allnext = of_allnodes;
+       np->allnext = np->parent->allnext;
+       np->parent->allnext = np;
        np->parent->child = np;
-       of_allnodes = np;
        of_node_clear_flag(np, OF_DETACHED);
        raw_spin_unlock_irqrestore(&devtree_lock, flags);