浏览代码

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>
Pantelis Antoniou 11 年之前
父节点
当前提交
e3963fd60a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/of/base.c

+ 1 - 0
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);