drm/sun4i: tcon: Release node when traversing of graph
authorJernej Skrabec <jernej.skrabec@siol.net>
Tue, 10 Jul 2018 20:34:58 +0000 (22:34 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 11 Jul 2018 07:52:41 +0000 (09:52 +0200)
commitda82107ecf328d4914d316872866ceeb683c01eb
treebac850c80fad7b06da55c1523baec696b4e589e4
parentaf11942ee44ed9d61ce7d8b1bd3277195ec4c1c1
drm/sun4i: tcon: Release node when traversing of graph

Function sun4i_tcon_find_engine_traverse() doesn't release node if it
needs to traverse of graph deeper than 1 level.

Fix this by calling of_node_put().

Fixes: 49836b11fe71 ("drm/sun4i: tcon: Generalize engine search algorithm")
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180710203511.18454-6-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun4i_tcon.c