Skip to content

Commit

Permalink
of: Clear detach flag on attach
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pantelis Antoniou authored and Grant Likely committed Feb 3, 2014
1 parent 588453c commit e3963fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/of/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e3963fd

Please sign in to comment.