提交 d9961b22 编写于 作者: L Laurent Pinchart 提交者: Dave Airlie

drm/rcar-du: Handle encoder initialization failures

The rcar_du_encoder_init() function can fail and return an error code.
Don't ignore it.
Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 a1b5fb3d
......@@ -248,7 +248,10 @@ int rcar_du_modeset_init(struct rcar_du_device *rcdu)
continue;
}
rcar_du_encoder_init(rcdu, pdata->type, pdata->output, pdata);
ret = rcar_du_encoder_init(rcdu, pdata->type, pdata->output,
pdata);
if (ret < 0)
return ret;
}
/* Set the possible CRTCs and possible clones. There's always at least
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册