]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/83xx: Add missing of_node_put() in mpc832x_spi_init()
authorLiang He <windhl@126.com>
Tue, 21 Jun 2022 08:09:32 +0000 (16:09 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:24 +0000 (17:30 +1000)
commit4f8e778476cd48a4050be29febfe7bda2404ac54
treef0ddfec0f47443574b695e6bc5d9ff77ea93c289
parent923a9f766990a7301833595f745456ad4d2e445c
powerpc/83xx: Add missing of_node_put() in mpc832x_spi_init()

In mpc832x_spi_init(), hold the reference returned by
of_find_compatible_node() and use it to call of_node_put() for refcount
balance.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220621080932.4081935-1-windhl@126.com
arch/powerpc/platforms/83xx/mpc832x_rdb.c