未验证 提交 86a3ae58 编写于 作者: D Dan Carpenter 提交者: Maxime Ripard

drm/sun4i: Fix error code in sun4i_tcon_bind()

We accidentally passed the wrong variable to PTR_ERR().

Fixes: a0c1214e ("drm/sun4i: Add LVDS support")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180115081113.wlam5wkmdynisf4r@mwanda
上级 a1c55bcc
......@@ -902,7 +902,7 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
has_lvds_alt = false;
} else {
dev_err(dev, "Couldn't get the LVDS PLL\n");
return PTR_ERR(tcon->lvds_rst);
return PTR_ERR(tcon->lvds_pll);
}
} else {
has_lvds_alt = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册