Commit e3963fd6 authored by Pantelis Antoniou's avatar Pantelis Antoniou Committed by Grant Likely

of: Clear detach flag on attach

When attaching a node always clear the detach flag. Without this change
the sequence detach, attach fails.
Signed-off-by: default avatarPantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent 588453c6
...@@ -1692,6 +1692,7 @@ int of_attach_node(struct device_node *np) ...@@ -1692,6 +1692,7 @@ int of_attach_node(struct device_node *np)
np->allnext = of_allnodes; np->allnext = of_allnodes;
np->parent->child = np; np->parent->child = np;
of_allnodes = np; of_allnodes = np;
of_node_clear_flag(np, OF_DETACHED);
raw_spin_unlock_irqrestore(&devtree_lock, flags); raw_spin_unlock_irqrestore(&devtree_lock, flags);
of_add_proc_dt_entry(np); of_add_proc_dt_entry(np);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment