powerpc-km82xx.c: replace of_node_put() with __free
authorDavid Hunter <david.hunter.linux@gmail.com>
Tue, 9 Jul 2024 14:35:53 +0000 (10:35 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Nov 2024 23:35:58 +0000 (10:35 +1100)
commit4aa5cc1e0012f784bc7f637458e597564833b425
tree5c593437aa918a57577ba56fd090465879de54ad
parente9d3270007b13acd34de4256970ffe457efc6c65
powerpc-km82xx.c: replace of_node_put() with __free

The use of the __free macro allows the cleanup to be based on scope
instead of on another function called later. This makes the cleanup
automatic and less susceptible to errors later.

Signed-off-by: David Hunter <david.hunter.linux@gmail.com>
[mpe: Fix over-long line & change log wording]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20240709143553.117053-1-david.hunter.linux@gmail.com
arch/powerpc/platforms/82xx/km82xx.c