]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/vio: Clarify vio_find_node() reference counting
authorJohan Hovold <johan@kernel.org>
Tue, 1 Nov 2016 15:26:02 +0000 (16:26 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 09:05:59 +0000 (20:05 +1100)
Add comment clarifying that vio_find_node() takes a reference to the
embedded struct device which needs to be dropped after use.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/vio.c

index b3813ddb2fb454fcc9815de973d96f226d0d0278..2c8fb3ec989e08b98cbd0835c9674efdc0d90044 100644 (file)
@@ -1648,6 +1648,9 @@ static struct vio_dev *vio_find_name(const char *name)
 /**
  * vio_find_node - find an already-registered vio_dev
  * @vnode: device_node of the virtual device we're looking for
+ *
+ * Takes a reference to the embedded struct device which needs to be dropped
+ * after use.
  */
 struct vio_dev *vio_find_node(struct device_node *vnode)
 {