aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/dispnv04/disp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv04/disp.c')
-rw-r--r--drivers/gpu/drm/nouveau/dispnv04/disp.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv04/disp.c b/drivers/gpu/drm/nouveau/dispnv04/disp.c
index aea81a547e85..34c0f2f67548 100644
--- a/drivers/gpu/drm/nouveau/dispnv04/disp.c
+++ b/drivers/gpu/drm/nouveau/dispnv04/disp.c
@@ -125,18 +125,8 @@ nv04_display_destroy(struct drm_device *dev)
125 struct nv04_display *disp = nv04_display(dev); 125 struct nv04_display *disp = nv04_display(dev);
126 struct nouveau_drm *drm = nouveau_drm(dev); 126 struct nouveau_drm *drm = nouveau_drm(dev);
127 struct nouveau_encoder *encoder; 127 struct nouveau_encoder *encoder;
128 struct drm_crtc *crtc;
129 struct nouveau_crtc *nv_crtc; 128 struct nouveau_crtc *nv_crtc;
130 129
131 /* Turn every CRTC off. */
132 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
133 struct drm_mode_set modeset = {
134 .crtc = crtc,
135 };
136
137 drm_mode_set_config_internal(&modeset);
138 }
139
140 /* Restore state */ 130 /* Restore state */
141 list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.base.head) 131 list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.base.head)
142 encoder->enc_restore(&encoder->base.base); 132 encoder->enc_restore(&encoder->base.base);