drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Mar 2019 14:31:30 +0000 (17:31 +0300)
committerCK Hu <ck.hu@mediatek.com>
Tue, 2 Apr 2019 01:25:46 +0000 (09:25 +0800)
commit2d85978341e6a32e7443d9f28639da254d53f400
tree3f030a72dbf6ee9db15f57403ead7f3ee498126b
parentd6db988a44294d7a91f60ecb87914694ba106305
drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()

We don't want to overwrite "ret", it already holds the correct error
code.  The "regmap" variable might be a valid pointer as this point.

Fixes: 8f83f26891e1 ("drm/mediatek: Add HDMI support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_hdmi.c