Browse Source

drm/sti: add missing encoder cleanup for DVO connector

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Vincent Abriou 10 years ago
parent
commit
0a1dc29db3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      drivers/gpu/drm/sti/sti_tvout.c

+ 4 - 0
drivers/gpu/drm/sti/sti_tvout.c

@@ -653,6 +653,10 @@ static void sti_tvout_destroy_encoders(struct sti_tvout *tvout)
 	if (tvout->hda)
 		drm_encoder_cleanup(tvout->hda);
 	tvout->hda = NULL;
+
+	if (tvout->dvo)
+		drm_encoder_cleanup(tvout->dvo);
+	tvout->dvo = NULL;
 }
 
 static int sti_tvout_bind(struct device *dev, struct device *master, void *data)