diff options
| -rw-r--r-- | drivers/of/base.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 31ca3c8dae61..7183e825d658 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
| @@ -663,8 +663,9 @@ static struct device_node *__of_get_next_child(const struct device_node *node, | |||
| 663 | * @node: parent node | 663 | * @node: parent node |
| 664 | * @prev: previous child of the parent node, or NULL to get first | 664 | * @prev: previous child of the parent node, or NULL to get first |
| 665 | * | 665 | * |
| 666 | * Returns a node pointer with refcount incremented, use | 666 | * Returns a node pointer with refcount incremented, use of_node_put() on |
| 667 | * of_node_put() on it when done. | 667 | * it when done. Returns NULL when prev is the last child. Decrements the |
| 668 | * refcount of prev. | ||
| 668 | */ | 669 | */ |
| 669 | struct device_node *of_get_next_child(const struct device_node *node, | 670 | struct device_node *of_get_next_child(const struct device_node *node, |
| 670 | struct device_node *prev) | 671 | struct device_node *prev) |
