diff options
Diffstat (limited to 'drivers/usb/core/of.c')
-rw-r--r-- | drivers/usb/core/of.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/core/of.c b/drivers/usb/core/of.c index d787f195a9a6..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) @@ -53,6 +54,9 @@ EXPORT_SYMBOL_GPL(usb_of_get_child_node); * * Find the companion device from platform bus. * + * Takes a reference to the returned struct device which needs to be dropped + * after use. + * * Return: On success, a pointer to the companion device, %NULL on failure. */ struct device *usb_of_get_companion_dev(struct device *dev) |