提交 014580ff 编写于 作者: Y YYS 提交者: CK Hu

drm/mediatek: fix mtk_hdmi_setup_vendor_specific_infoframe mistake

mtk_hdmi_setup_vendor_specific_infoframe will return before handle
mtk_hdmi_hw_send_info_frame.Because hdmi_vendor_infoframe_pack
returns the number of bytes packed into the binary buffer or
a negative error code on failure.
So correct it.

Fixes: 8f83f268 ("drm/mediatek: Add HDMI support")
Signed-off-by: NNickey Yang <nickey.yang@rock-chips.com>
Signed-off-by: NCK Hu <ck.hu@mediatek.com>
上级 f752413e
......@@ -1062,7 +1062,7 @@ static int mtk_hdmi_setup_vendor_specific_infoframe(struct mtk_hdmi *hdmi,
}
err = hdmi_vendor_infoframe_pack(&frame, buffer, sizeof(buffer));
if (err) {
if (err < 0) {
dev_err(hdmi->dev, "Failed to pack vendor infoframe: %zd\n",
err);
return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册