mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
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: Johan Hovold <johan@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
815a7141c4
commit
e8cfb7e7c3
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user