OSDN Git Service

drm/sun4i: tcon: Simplify sun4i_tcon_find_engine_traverse for one input
authorChen-Yu Tsai <wens@csie.org>
Fri, 8 Sep 2017 07:50:13 +0000 (15:50 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 9 Sep 2017 15:24:40 +0000 (17:24 +0200)
commitbe3fe0f9ed1ca8e4b2cf3419dfb34be716296487
tree48c8c8bfec3b49e977ece71ef722451bbc9cda5c
parente8d5bbf7f4c408f0d73c90e573c78cca745a389f
drm/sun4i: tcon: Simplify sun4i_tcon_find_engine_traverse for one input

Now that sun4i_tcon_find_engine_traverse() usage is restricted to the
single input case, we can remove the for_each_available_child_of_node
loop.

While at it, consolidate all the of_node_put calls into a common exit
path.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170908075016.18657-6-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_tcon.c