drm/mediatek: fix mtk_hdmi_setup_vendor_specific_infoframe mistake
authorYYS <nickey.yang@rock-chips.com>
Tue, 21 Mar 2017 08:27:03 +0000 (16:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Jun 2017 05:06:16 +0000 (07:06 +0200)
commit1e1aad38806dfba71c40a526a77abdfae3f53e98
tree6b80aaea06b846efa877be22b4fca49239490f3e
parent46f5277decd88047b0c9d8516bfbc269d378efd8
drm/mediatek: fix mtk_hdmi_setup_vendor_specific_infoframe mistake

commit 014580ffab654bb83256783a2b185cf6c06dffaa 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: 8f83f26891e1 ("drm/mediatek: Add HDMI support")
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c