/* Plug a device node into the tree and global list.  */
void of_attach_node(struct device_node *np)
/* Plug a device node into the tree and global list.  */
void of_attach_node(struct device_node *np)
{
	unsigned long flags;
	write_lock_irqsave(&devtree_lock, flags);
	np->sibling = np->parent->child;
	np->allnext = allnodes;
	np->parent->child = np;
	allnodes = np;
	write_unlock_irqrestore(&devtree_lock, flags);
}