Commit 5899b635 authored by YYS's avatar YYS Committed by Greg Kroah-Hartman

drm/mediatek: fix mtk_hdmi_setup_vendor_specific_infoframe mistake

commit 014580ff upstream.

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: default avatarNickey Yang <nickey.yang@rock-chips.com>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5b754c99
...@@ -1061,7 +1061,7 @@ static int mtk_hdmi_setup_vendor_specific_infoframe(struct mtk_hdmi *hdmi, ...@@ -1061,7 +1061,7 @@ static int mtk_hdmi_setup_vendor_specific_infoframe(struct mtk_hdmi *hdmi,
} }
err = hdmi_vendor_infoframe_pack(&frame, buffer, sizeof(buffer)); 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", dev_err(hdmi->dev, "Failed to pack vendor infoframe: %zd\n",
err); err);
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment