[PATCH] leds: powernv: replace of_node_put to __free

2024-05-30 Thread MarileneGarcia
replaced to the equivalent for_each_available_child_of_node_scoped which use the __free. Suggested-by: Julia Lawall Signed-off-by: MarileneGarcia --- Changes: These changes intend to add the new __free cleanup handler to device_node initialisations, which ensures that the resource is freed as

[PATCH v2 linux-next] leds: powernv: replace of_node_put to __free

2024-05-30 Thread MarileneGarcia
replaced to the equivalent for_each_available_child_of_node_scoped which use the __free. Suggested-by: Julia Lawall Signed-off-by: MarileneGarcia --- Changes v2: It was missing a blank line. Suggested-by: Julia Lawall Signed-off-by: MarileneGarcia --- drivers/leds/leds-powernv.c | 28

[PATCH v3 linux-next] leds: powernv: replace of_node_put to __free

2024-05-31 Thread MarileneGarcia
replaced to the equivalent for_each_available_child_of_node_scoped which use the __free. Suggested-by: Julia Lawall Signed-off-by: MarileneGarcia --- Hello, Thank you for the feedback. The line-break strategy was fixed, and now it is according to the top one suggested. The __free is a wrapper