aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2017-06-14 04:09:00 -0400
committerInki Dae <inki.dae@samsung.com>2017-07-26 20:24:01 -0400
commitc9948920cfc63c5ed4eb37f461a1b2752d2e1d3b (patch)
treebdec6be6f3d0768dbffe606c7bd3da841cfcefa0
parente3cc51ea0b8ae056cd18adc62c03573b24ed46cd (diff)
drm/exynos: dsi: do not try to find bridge
It doesn't need to try to find a bridge if bridge node doesn't exist. Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com> Tested-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_dsi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
index a11b79596e2f..189685365450 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
@@ -1687,9 +1687,11 @@ static int exynos_dsi_bind(struct device *dev, struct device *master,
1687 return ret; 1687 return ret;
1688 } 1688 }
1689 1689
1690 bridge = of_drm_find_bridge(dsi->bridge_node); 1690 if (dsi->bridge_node) {
1691 if (bridge) 1691 bridge = of_drm_find_bridge(dsi->bridge_node);
1692 drm_bridge_attach(encoder, bridge, NULL); 1692 if (bridge)
1693 drm_bridge_attach(encoder, bridge, NULL);
1694 }
1693 1695
1694 return mipi_dsi_host_register(&dsi->dsi_host); 1696 return mipi_dsi_host_register(&dsi->dsi_host);
1695} 1697}