drm/sun4i: Fix error code in sun4i_tcon_bind()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Jan 2018 08:11:13 +0000 (11:11 +0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 15 Jan 2018 09:09:50 +0000 (10:09 +0100)
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
drivers/gpu/drm/sun4i/sun4i_tcon.c

index a897f82d9e66e38a10ce86957fc44d5830dab02b..1e3e8ebd9ed31081b5d50e88b3f6cf4929e62496 100644 (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;