drm/fsl-dcu: detach panel on destroy
authorStefan Agner <stefan@agner.ch>
Thu, 24 Mar 2016 06:27:11 +0000 (23:27 -0700)
committerStefan Agner <stefan@agner.ch>
Tue, 26 Apr 2016 03:45:32 +0000 (20:45 -0700)
Disable the earlier attached panel on connector destroy.

Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c

index 99cb7ba44d2b811759e595c5a58642fa97d7d04a..20fb7b0f257124171b6d5636a861bf6eb80fac2a 100644 (file)
@@ -79,7 +79,10 @@ int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device *fsl_dev,
 
 static void fsl_dcu_drm_connector_destroy(struct drm_connector *connector)
 {
+       struct fsl_dcu_drm_connector *fsl_con = to_fsl_dcu_connector(connector);
+
        drm_connector_unregister(connector);
+       drm_panel_detach(fsl_con->panel);
        drm_connector_cleanup(connector);
 }