mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 19:26:54 +07:00
drm/rockchip: lvds: Fix an error handling path
[ Upstream commit 3dfa159f6b0c054eb63673fbf643a5f2cc862e63 ]
'ret' is know to be 0 a this point. Checking the return value of
'phy_init()' and 'phy_set_mode()' was intended instead.
So add the missing assignments.
Fixes: cca1705c3d
("drm/rockchip: lvds: Add PX30 support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/248220d4815dc8c8088cebfab7d6df5f70518438.1619881852.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
59eb7193be
commit
75db503c9c
@ -499,11 +499,11 @@ static int px30_lvds_probe(struct platform_device *pdev,
|
|||||||
if (IS_ERR(lvds->dphy))
|
if (IS_ERR(lvds->dphy))
|
||||||
return PTR_ERR(lvds->dphy);
|
return PTR_ERR(lvds->dphy);
|
||||||
|
|
||||||
phy_init(lvds->dphy);
|
ret = phy_init(lvds->dphy);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
phy_set_mode(lvds->dphy, PHY_MODE_LVDS);
|
ret = phy_set_mode(lvds->dphy, PHY_MODE_LVDS);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user