Skip to content

Commit a28f918

Browse files
committed
drm/imx: dw_hdmi-imx: use imx_drm_encoder_parse_of
This is the same code and comment that is already shared by imx-ldb, imx-tve, and parallel-display in imx_drm_encoder_parse_of(). Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
1 parent 58b24a3 commit a28f918

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

drivers/gpu/drm/imx/dw_hdmi-imx.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,9 @@ static int dw_hdmi_imx_bind(struct device *dev, struct device *master,
219219
hdmi->dev = &pdev->dev;
220220
encoder = &hdmi->encoder;
221221

222-
encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, dev->of_node);
223-
/*
224-
* If we failed to find the CRTC(s) which this encoder is
225-
* supposed to be connected to, it's because the CRTC has
226-
* not been registered yet. Defer probing, and hope that
227-
* the required CRTC is added later.
228-
*/
229-
if (encoder->possible_crtcs == 0)
230-
return -EPROBE_DEFER;
222+
ret = imx_drm_encoder_parse_of(drm, encoder, dev->of_node);
223+
if (ret)
224+
return ret;
231225

232226
ret = dw_hdmi_imx_parse_dt(hdmi);
233227
if (ret < 0)

0 commit comments

Comments
 (0)