Commit c9948920 authored by Inki Dae's avatar Inki Dae
Browse files

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: default avatarShuah Khan <shuahkh@osg.samsung.com>
Tested-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent e3cc51ea
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1687,9 +1687,11 @@ static int exynos_dsi_bind(struct device *dev, struct device *master,
		return ret;
	}

	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);
}