aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-01-15 03:11:13 -0500
committerMaxime Ripard <maxime.ripard@free-electrons.com>2018-01-15 04:09:50 -0500
commit86a3ae587980f857284a11b86ef345f47298aade (patch)
tree7281d02d305c3b09d3d713bda23d29f4b5aebb35
parenta1c55bccf6004ec9fbcf892328f9658767aa22bb (diff)
drm/sun4i: Fix error code in sun4i_tcon_bind()
We accidentally passed the wrong variable to PTR_ERR(). Fixes: a0c1214e4764 ("drm/sun4i: Add LVDS support") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180115081113.wlam5wkmdynisf4r@mwanda
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_tcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index a897f82d9e66..1e3e8ebd9ed3 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@ -902,7 +902,7 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
902 has_lvds_alt = false; 902 has_lvds_alt = false;
903 } else { 903 } else {
904 dev_err(dev, "Couldn't get the LVDS PLL\n"); 904 dev_err(dev, "Couldn't get the LVDS PLL\n");
905 return PTR_ERR(tcon->lvds_rst); 905 return PTR_ERR(tcon->lvds_pll);
906 } 906 }
907 } else { 907 } else {
908 has_lvds_alt = true; 908 has_lvds_alt = true;