Commit 60a93cff authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: of: document reference taken by child-lookup helper

Document that the child-node lookup helper takes a reference to the
device-tree node which needs to be dropped after use.
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e271b2c9
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
* *
* Find the node from device tree according to its port number. * Find the node from device tree according to its port number.
* *
* Return: On success, a pointer to the device node, %NULL on failure. * Return: A pointer to the node with incremented refcount if found, or
* %NULL otherwise.
*/ */
struct device_node *usb_of_get_child_node(struct device_node *parent, struct device_node *usb_of_get_child_node(struct device_node *parent,
int portnum) int portnum)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment