drm/sun4i: Fix error code in sun4i_tcon_bind()

We accidentally passed the wrong variable to PTR_ERR().

Fixes: a0c1214e47 ("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
This commit is contained in:
Dan Carpenter 2018-01-15 11:11:13 +03:00 committed by Maxime Ripard
parent a1c55bccf6
commit 86a3ae5879
No known key found for this signature in database
GPG key ID: D2B4C094214DAF74

View file

@ -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;