Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8cfb7e7 authored by Johan Hovold's avatar Johan Hovold Committed by Michael Ellerman
Browse files

powerpc/vio: Clarify vio_find_node() reference counting



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: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 815a7141
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)
{