From: Johan Hovold Date: Tue, 6 Jun 2017 15:58:59 +0000 (+0200) Subject: USB: of: document reference taken by child-lookup helper X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60a93cffcffdc86222c184aafc622b53b8460427;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)