diff options
author | Liang He <windhl@126.com> | 2022-07-16 15:07:58 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-09-05 17:30:29 +1000 |
commit | b3d6637bcc5d17caec56a76f6e430dcf444ef80e (patch) | |
tree | dc824393f58a7f8056cef08ec7ce059e69f9e209 /arch/powerpc/platforms | |
parent | d36337ce950ce8c57a8e4f61593f923cceaf0dd7 (diff) | |
download | linux-rpi-b3d6637bcc5d17caec56a76f6e430dcf444ef80e.tar.gz linux-rpi-b3d6637bcc5d17caec56a76f6e430dcf444ef80e.tar.bz2 linux-rpi-b3d6637bcc5d17caec56a76f6e430dcf444ef80e.zip |
powerpc/powermac/low_i2c: Add missing of_node_put() in kw_i2c_probe()
Call of_node_put() for the reference 'parent' returned by
of_get_parent() which has increased the refcount.
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220716070758.539434-1-windhl@126.com
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/powermac/low_i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c index c1c430c66dc9..40f3aa432fba 100644 --- a/arch/powerpc/platforms/powermac/low_i2c.c +++ b/arch/powerpc/platforms/powermac/low_i2c.c @@ -627,6 +627,7 @@ static void __init kw_i2c_probe(void) if (parent == NULL) continue; chans = parent->name[0] == 'u' ? 2 : 1; + of_node_put(parent); for (i = 0; i < chans; i++) kw_i2c_add(host, np, np, i); } else { |