diff options
author | Leonard Crestez <leonard.crestez@nxp.com> | 2017-05-10 09:17:13 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2017-06-06 04:21:10 -0400 |
commit | e36aecba54bf24387271f2d7b989cc686a389931 (patch) | |
tree | 311eb83acceed1e422476cc51bcb1a3ccfc76c3e /drivers/gpu/drm/imx/imx-ldb.c | |
parent | 47c298f792992c6eda26fc4e4630c7ca54dcec47 (diff) |
drm/imx: imx-ldb: Accept drm_of_find_panel_or_bridge failure
Not having an endpoint bound in DT should not cause a failure here,
there are fallbacks. So explicitly accept a missing endpoint.
This behavior change was introduced by refactoring in drm_of parsing
code and it should not require dts changes.
In particular this fixes imx6qdl-sabreauto boards.
Link: https://lists.freedesktop.org/archives/dri-devel/2017-May/141233.html
Fixes: ebc944613567 ("drm: convert drivers to use drm_of_find_panel_or_bridge")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-ldb.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-ldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c index 8fb801fab039..8b05ecb8fdef 100644 --- a/drivers/gpu/drm/imx/imx-ldb.c +++ b/drivers/gpu/drm/imx/imx-ldb.c | |||
@@ -673,7 +673,7 @@ static int imx_ldb_bind(struct device *dev, struct device *master, void *data) | |||
673 | ret = drm_of_find_panel_or_bridge(child, | 673 | ret = drm_of_find_panel_or_bridge(child, |
674 | imx_ldb->lvds_mux ? 4 : 2, 0, | 674 | imx_ldb->lvds_mux ? 4 : 2, 0, |
675 | &channel->panel, &channel->bridge); | 675 | &channel->panel, &channel->bridge); |
676 | if (ret) | 676 | if (ret && ret != -ENODEV) |
677 | return ret; | 677 | return ret; |
678 | 678 | ||
679 | /* panel ddc only if there is no bridge */ | 679 | /* panel ddc only if there is no bridge */ |