/* Returns a node pointer with refcount incremented, use of_node_put() on it when done.  */
struct device_node* of_get_parent(const struct device_node *node)
/* Returns a node pointer with refcount incremented, use of_node_put() on it when done.  */
struct device_node* of_get_parent(const struct device_node *node)
{
	struct device_node *np;
	if (!node)
		return NULL;
	read_lock(&devtree_lock);
	np = of_node_get(node->parent);
	read_unlock(&devtree_lock);
	return np;
}