Skip to content

Commit 6654b57

Browse files
fenghusthujernejsk
authored andcommitted
drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind()
Fix to return a negative error code from the error handling case instead of 0 in function sun8i_dw_hdmi_bind(). Fixes: b7c7436 ("drm/sun4i: Implement A83T HDMI driver") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Link: https://patchwork.freedesktop.org/patch/msgid/1605488969-5211-1-git-send-email-wangxiongfeng2@huawei.com
1 parent bc551d7 commit 6654b57

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ static int sun8i_dw_hdmi_bind(struct device *dev, struct device *master,
208208
phy_node = of_parse_phandle(dev->of_node, "phys", 0);
209209
if (!phy_node) {
210210
dev_err(dev, "Can't found PHY phandle\n");
211+
ret = -EINVAL;
211212
goto err_disable_clk_tmds;
212213
}
213214

0 commit comments

Comments
 (0)