]> www.infradead.org Git - users/jedix/linux-maple.git/commit
da8xx-cfgchip.c: replace of_node_put with __free improves cleanup
authorDavid Hunter <david.hunter.linux@gmail.com>
Sat, 20 Jul 2024 15:24:47 +0000 (11:24 -0400)
committerStephen Boyd <sboyd@kernel.org>
Mon, 29 Jul 2024 23:12:50 +0000 (16:12 -0700)
commitf9848cfa4bec953603dc9ffb838229e072b0193d
tree8bce99f32efd5e7bc89a0cc56c3872e369fc54da
parent8400291e289ee6b2bf9779ff1c83a291501f017b
da8xx-cfgchip.c: replace of_node_put with __free improves cleanup

The use of the __free function 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.

This code was compiled without errors or warnings.

Signed-off-by: David Hunter <david.hunter.linux@gmail.com>
Link: https://lore.kernel.org/r/20240720152447.311442-1-david.hunter.linux@gmail.com
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/davinci/da8xx-cfgchip.c