]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/mpc5xxx: Add missing fwnode_handle_put()
authorLiang He <windhl@126.com>
Wed, 22 Mar 2023 03:04:23 +0000 (11:04 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Aug 2023 22:39:30 +0000 (08:39 +1000)
commitb9bbbf4979073d5536b7650decd37fcb901e6556
treee2a715ce225d60be80fcaf9b82ecd0c4dcb794e7
parentcdebfd27292ecdebe7d493830354e302368b3188
powerpc/mpc5xxx: Add missing fwnode_handle_put()

In mpc5xxx_fwnode_get_bus_frequency(), we should add
fwnode_handle_put() when break out of the iteration
fwnode_for_each_parent_node() as it will automatically
increase and decrease the refcounter.

Fixes: de06fba62af6 ("powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230322030423.1855440-1-windhl@126.com
arch/powerpc/sysdev/mpc5xxx_clocks.c