Skip to contentSkip to conversation

drm/sun4i: Fix error code in sun4i_tcon_bind()

PATCH Applied Dan Carpenter 2 participants 2 messages Jan 15, 2018

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
drivers/gpu/drm/sun4i/sun4i_tcon.c +1 -1
index b78fed809992..3c15cf24b503 100644
@@ -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;
#1 lore raw
Quoted 4 lines · Dan Carpenter

We accidentally passed the wrong variable to PTR_ERR().

Fixes a0c1214e4764 ("drm/sun4i: Add LVDS support")

Applied, thanks!
Maxime

Signature · 3 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com