diff options
author | Johan Hovold <johan@kernel.org> | 2017-06-06 17:58:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-13 11:07:32 +0200 |
commit | 60a93cffcffdc86222c184aafc622b53b8460427 (patch) | |
tree | f67120bb70f86ad678a6d33bf725d23fb18c489e /drivers/usb/core | |
parent | e271b2c909a22a2c13b2d5f77f2ce0091b74540c (diff) | |
download | linux-stable-60a93cffcffdc86222c184aafc622b53b8460427.tar.gz linux-stable-60a93cffcffdc86222c184aafc622b53b8460427.tar.bz2 linux-stable-60a93cffcffdc86222c184aafc622b53b8460427.zip |
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: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/of.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/of.c b/drivers/usb/core/of.c index d563cbcf76cf..3863bb1ce8c5 100644 --- a/drivers/usb/core/of.c +++ b/drivers/usb/core/of.c @@ -28,7 +28,8 @@ * * 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, int portnum) |