summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-01-15 11:11:13 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2018-01-15 10:09:50 +0100
commit86a3ae587980f857284a11b86ef345f47298aade (patch)
tree7281d02d305c3b09d3d713bda23d29f4b5aebb35
parenta1c55bccf6004ec9fbcf892328f9658767aa22bb (diff)
downloadlinux-stable-86a3ae587980f857284a11b86ef345f47298aade.tar.gz
linux-stable-86a3ae587980f857284a11b86ef345f47298aade.tar.bz2
linux-stable-86a3ae587980f857284a11b86ef345f47298aade.zip
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,
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;