From: Liu Ying Date: Mon, 23 Feb 2015 03:09:51 +0000 (+0800) Subject: DRM: i.MX: parallel display: Support probe deferral for finding DRM panel X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d70e96ae05928643a7b10b8a519dc27afe4750d0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git DRM: i.MX: parallel display: Support probe deferral for finding DRM panel Signed-off-by: Liu Ying Signed-off-by: Philipp Zabel --- diff --git a/drivers/gpu/drm/imx/parallel-display.c b/drivers/gpu/drm/imx/parallel-display.c index 5e83e007080f..900dda6a8e71 100644 --- a/drivers/gpu/drm/imx/parallel-display.c +++ b/drivers/gpu/drm/imx/parallel-display.c @@ -236,8 +236,11 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data) } panel_node = of_parse_phandle(np, "fsl,panel", 0); - if (panel_node) + if (panel_node) { imxpd->panel = of_drm_find_panel(panel_node); + if (!imxpd->panel) + return -EPROBE_DEFER; + } imxpd->dev = dev;