diff options
author | Johan Hovold <johan@kernel.org> | 2016-11-01 16:26:02 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-11-14 10:05:59 +0100 |
commit | e8cfb7e7c3b2be8a4c2241b5da2ae62bc1f4808f (patch) | |
tree | a81993867afca30bf8ef64c35352bf94d637fdc2 /arch/powerpc/kernel/vio.c | |
parent | powerpc/ibmebus: Fix further device reference leaks (diff) | |
download | linux-e8cfb7e7c3b2be8a4c2241b5da2ae62bc1f4808f.tar.xz linux-e8cfb7e7c3b2be8a4c2241b5da2ae62bc1f4808f.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/vio.c')
-rw-r--r-- | arch/powerpc/kernel/vio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index b3813ddb2fb4..2c8fb3ec989e 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c @@ -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) { |