mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 07:04:04 +08:00
drm/nouveau: run mode_config destructor before destroying internal display state
Later changes will depend on being able to pull down CRTCs etc with the master display state still intact. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
94e5c39bad
commit
d6bf2f3707
@ -400,11 +400,12 @@ nouveau_display_destroy(struct drm_device *dev)
|
|||||||
nouveau_backlight_exit(dev);
|
nouveau_backlight_exit(dev);
|
||||||
drm_vblank_cleanup(dev);
|
drm_vblank_cleanup(dev);
|
||||||
|
|
||||||
|
drm_kms_helper_poll_fini(dev);
|
||||||
|
drm_mode_config_cleanup(dev);
|
||||||
|
|
||||||
if (disp->dtor)
|
if (disp->dtor)
|
||||||
disp->dtor(dev);
|
disp->dtor(dev);
|
||||||
|
|
||||||
drm_kms_helper_poll_fini(dev);
|
|
||||||
drm_mode_config_cleanup(dev);
|
|
||||||
nouveau_drm(dev)->display = NULL;
|
nouveau_drm(dev)->display = NULL;
|
||||||
kfree(disp);
|
kfree(disp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user