summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorPantelis Antoniou <panto@antoniou-consulting.com>2013-11-08 17:03:57 +0200
committerGrant Likely <grant.likely@linaro.org>2014-02-03 14:23:38 +0000
commite3963fd60a83967573f6330c9db134bd581da746 (patch)
tree64e6259e7a5d2cad8260c026ee4807de614fb44a /drivers/of
parent588453c69dace39351129a038dd2796608f74bb3 (diff)
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: Pantelis Antoniou <panto@antoniou-consulting.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index ff85450d568..87038d80b47 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1692,6 +1692,7 @@ int of_attach_node(struct device_node *np)
np->allnext = of_allnodes;
np->parent->child = np;
of_allnodes = np;
+ of_node_clear_flag(np, OF_DETACHED);
raw_spin_unlock_irqrestore(&devtree_lock, flags);
of_add_proc_dt_entry(np);