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 automatically skips any disabled nodes (i.e. status = disabled).

of_node_put will be called on prev.

Return

A node pointer if found, with refcount incremented, use of_node_put on it when done. NULL if node is not found.