drm/imx: parallel-display: Accept drm_of_find_panel_or_bridge failure
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 12 Jun 2017 15:54:29 +0000 (17:54 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 17 Jul 2017 13:57:52 +0000 (15:57 +0200)
commit799ee2970485dc206c3bf347d6e6827c04d5e4f9
treeceb84f15db7da9d53f0983ef1e39215705f9c3a4
parentf2ad99fc46d5454e097692c8c8202fd5bc46c809
drm/imx: parallel-display: Accept drm_of_find_panel_or_bridge failure

The parallel panel driver should continue to work without having an
endpoint linking to an panel in DT for backwards compatibility.
With the recent switch to drm_of_find_panel_or_bridge, an absent
panel results in a failure with -ENODEV error return code. To restore
the old behaviour, ignore the -ENODEV return code.

Reported-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Fixes: ebc944613567 ("drm: convert drivers to use drm_of_find_panel_or_bridge")
Tested-by: Chris Healy <cphealy@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/parallel-display.c