diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2015-02-23 06:09:51 +0300 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2015-02-23 19:19:25 +0300 |
commit | d70e96ae05928643a7b10b8a519dc27afe4750d0 (patch) | |
tree | 7d87aab1912c7c1da0af4cd2aacf3eeec2a64ed1 /drivers/gpu/drm/imx/parallel-display.c | |
parent | 51dac94e801fb779789fa8e38bac7df306ac4fa7 (diff) | |
download | linux-d70e96ae05928643a7b10b8a519dc27afe4750d0.tar.xz |
DRM: i.MX: parallel display: Support probe deferral for finding DRM panel
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/parallel-display.c')
-rw-r--r-- | drivers/gpu/drm/imx/parallel-display.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |