]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/exynos: dsi: do not try to find bridge
authorInki Dae <inki.dae@samsung.com>
Wed, 14 Jun 2017 08:09:00 +0000 (17:09 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 27 Jul 2017 00:24:01 +0000 (09:24 +0900)
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>
drivers/gpu/drm/exynos/exynos_drm_dsi.c

index a11b79596e2f8d483c113b78d1df7568d59a48d4..18968536545086d3f2c43f04b494d0638d4fab64 100644 (file)
@@ -1687,9 +1687,11 @@ static int exynos_dsi_bind(struct device *dev, struct device *master,
                return ret;
        }
 
-       bridge = of_drm_find_bridge(dsi->bridge_node);
-       if (bridge)
-               drm_bridge_attach(encoder, bridge, NULL);
+       if (dsi->bridge_node) {
+               bridge = of_drm_find_bridge(dsi->bridge_node);
+               if (bridge)
+                       drm_bridge_attach(encoder, bridge, NULL);
+       }
 
        return mipi_dsi_host_register(&dsi->dsi_host);
 }