Name

of_get_next_available_child — find the next available child node

Synopsis

struct device_node * of_get_next_available_child (const struct device_node * node,
 struct device_node * prev);
 

Arguments

node

Pointer to parent node

prev

Pointer to previous child of parent node, or NULL to get first

Description

This function is like of_get_next_child, except that it skips any disabled nodes (i.e. status is any value other than okay or ok).

of_node_put will be called on prev.

Return

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