drm/of: Make drm_of_find_panel_or_bridge() to check graph's presence
authorDmitry Osipenko <digetx@gmail.com>
Wed, 1 Jul 2020 07:42:32 +0000 (10:42 +0300)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 1 Jul 2020 08:49:25 +0000 (10:49 +0200)
commitea5bc3b15e0f2a245ef1b0093ebe8bc489d49936
treeeb61c223395aec0acb01dd8eddb96b2004c30a46
parent4ec0a44ba8d797876ff416fc0317a0169483d240
drm/of: Make drm_of_find_panel_or_bridge() to check graph's presence

When graph isn't defined in a device-tree, the of_graph_get_remote_node()
prints a noisy error message, telling that port node is not found. This is
undesirable behaviour in our case because absence of a panel/bridge graph
is a valid case. Let's check the graph's presence in a device-tree before
proceeding with parsing of the graph.

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200701074232.13632-3-digetx@gmail.com
drivers/gpu/drm/drm_of.c