OSDN Git Service

drm/sti: add missing encoder cleanup for DVO connector
authorVincent Abriou <vincent.abriou@st.com>
Fri, 5 Feb 2016 08:31:18 +0000 (09:31 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 26 Feb 2016 09:06:17 +0000 (10:06 +0100)
Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
drivers/gpu/drm/sti/sti_tvout.c

index 8092418..e860a41 100644 (file)
@@ -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)