Name

of_get_next_parent — iterate to a node's parent

Synopsis

struct device_node * of_get_next_parent (struct device_node * node);
 

Arguments

node

Pointer to node to get parent of

Description

Find the parent node of node.

This is like of_get_parent except that it drops the refcount on the passed node, making it suitable for iterating up the tree.

Return

Pointer to next parent node pointer if found, with refcount incremented, use of_node_put on it when done. NULL if node is not found.