/* Returns a node pointer with refcount incremented, use of_node_put() on it when done.  */
struct device_node* of_find_node_by_phandle(phandle handle)
/* Returns a node pointer with refcount incremented, use of_node_put() on it when done.  */
struct device_node* of_find_node_by_phandle(phandle handle)
{
	struct device_node *np;
	read_lock(&devtree_lock);
	for (np = allnodes; np != NULL; np = np->allnext)
		if (np->linux_phandle == handle)
			break;
	of_node_get(np);
	read_unlock(&devtree_lock);
	return np;
}