media: nuvoton: Fix reference handling of ece_node
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 24 Feb 2025 07:03:54 +0000 (07:03 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 25 Feb 2025 08:14:05 +0000 (09:14 +0100)
commit8ba4ef40ad6ca62368292a69855324213181abfb
tree06394882636eb54eca7e170f1c6bbf7dded7ebc7
parenta980bc5f56b0292336e408f657f79e574e8067c0
media: nuvoton: Fix reference handling of ece_node

Make sure all the code paths call of_node_put().

Instead of manually calling of_node_put, use the __free macros/helpers.

Cc: stable@vger.kernel.org
Fixes: 46c15a4ff1f4 ("media: nuvoton: Add driver for NPCM video capture and encoding engine")
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/nuvoton/npcm-video.c