diff options
author | MarileneGarcia <marilene.agarcia@gmail.com> | 2024-06-01 00:17:13 -0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-06-13 18:34:07 +0100 |
commit | 7c85503b6d597b84ea58fe3dd95cd9eaeb1f3206 (patch) | |
tree | d01b2b035208624c8531f05b816eb00e7ca82468 /drivers/tee | |
parent | e58481bfbf191a1557cbf806e1cbbf961019dccf (diff) |
leds: powernv: Replace of_node_put to __free
Use __free for device_node values, and thus drop calls to
of_node_put.
The variable attribute __free adds a scope based cleanup to
the device node. The goal is to reduce memory management issues
in the kernel code.
The of_node_put calls were removed, and the
for_each_available_child_of_node was replaced to the equivalent
for_each_available_child_of_node_scoped which use the __free.
Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: MarileneGarcia <marilene.agarcia@gmail.com>
Link: https://lore.kernel.org/r/20240601031713.1307859-1-marilene.agarcia@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/tee')
0 files changed, 0 insertions, 0 deletions