drm/bridge: tc358767: fix missing of_node_put() in for_each_endpoint_of_node()drm-misc-fixes-2024-10-24
commit5c23878252515b8d2b86839bd4cb7dea7088aacd
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Sun, 13 Oct 2024 18:11:29 +0000 (13 20:11 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 21 Oct 2024 13:00:35 +0000 (21 15:00 +0200)
tree1383651d278d13e50ee8abc7bdf8c6de7154ca91
parent85e444a68126a631221ae32c63fce882bb18a262
drm/bridge: tc358767: fix missing of_node_put() in for_each_endpoint_of_node()

for_each_endpoint_of_node() requires a call to of_node_put() for every
early exit. A new error path was added to the loop without observing
this requirement.

Add the missing call to of_node_put() in the error path.

Fixes: 1fb4dceeedc5 ("drm/bridge: tc358767: Add configurable default preemphasis")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20241013-tc358767-of_node_put-v1-1-97431772c0ff@gmail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241013-tc358767-of_node_put-v1-1-97431772c0ff@gmail.com
drivers/gpu/drm/bridge/tc358767.c