mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
drm/fsl-dcu: detach panel on destroy
Disable the earlier attached panel on connector destroy. Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
parent
a5dab99139
commit
a109f66f4b
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue