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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 15:54:07 +0000 (17:54 +0200)
commit929d019d6d445855103cef86ab6331ef96b6e081
treeb62917ebb5e1fe27a51f19a776c375141b3ce961
parent0fb785e28833216e6211a303cbfc0829942dc3c1
drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()

[ Upstream commit 2d85978341e6a32e7443d9f28639da254d53f400 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c