On Sun, 27 Oct 2024 13:26:49 +0100, Javier Carrasco wrote:
Device nodes accessed via of_get_compatible_child() require of_node_put() to be called when the node is no longer required to avoid leaving a reference to the node behind, leaking the resource.
In this case, the usage of 'tnode' is straightforward and there are no error paths, allowing for a single of_node_put() when 'tnode' is no longer required.
[...]
Applied, thanks!
[1/1] counter: stm32-timer-cnt: fix device_node handling in probe_encoder() commit: 147359e23e5c9652ff8c5a98a51a7323bd51c94a
Best regards,