aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Abriou <vincent.abriou@st.com>2016-02-05 03:31:18 -0500
committerVincent Abriou <vincent.abriou@st.com>2016-02-26 04:06:17 -0500
commit0a1dc29db379cb05b784bfd7e4628da02f7d4d83 (patch)
treeb143d179c6cbaf9d92beec1456c16c730739c38d
parent974c3bb511ce0db8c1ba04dd8e242d2eba9c8762 (diff)
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>
-rw-r--r--drivers/gpu/drm/sti/sti_tvout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sti/sti_tvout.c b/drivers/gpu/drm/sti/sti_tvout.c
index 8092418ac65e..e860a41b58aa 100644
--- a/drivers/gpu/drm/sti/sti_tvout.c
+++ b/drivers/gpu/drm/sti/sti_tvout.c
@@ -653,6 +653,10 @@ static void sti_tvout_destroy_encoders(struct sti_tvout *tvout)
653 if (tvout->hda) 653 if (tvout->hda)
654 drm_encoder_cleanup(tvout->hda); 654 drm_encoder_cleanup(tvout->hda);
655 tvout->hda = NULL; 655 tvout->hda = NULL;
656
657 if (tvout->dvo)
658 drm_encoder_cleanup(tvout->dvo);
659 tvout->dvo = NULL;
656} 660}
657 661
658static int sti_tvout_bind(struct device *dev, struct device *master, void *data) 662static int sti_tvout_bind(struct device *dev, struct device *master, void *data)