Sfoglia il codice sorgente

drm/crtc: fix mismerge of last patch.

We only want to NULL encoder->crtc when it is off.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Dave Airlie 15 anni fa
parent
commit
9c552dd793
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      drivers/gpu/drm/drm_crtc_helper.c

+ 2 - 2
drivers/gpu/drm/drm_crtc_helper.c

@@ -278,9 +278,9 @@ void drm_helper_disable_unused_functions(struct drm_device *dev)
 				(*encoder_funcs->disable)(encoder);
 			else
 				(*encoder_funcs->dpms)(encoder, DRM_MODE_DPMS_OFF);
+			/* disconnector encoder from any connector */
+			encoder->crtc = NULL;
 		}
-		/* disconnector encoder from any connector */
-		encoder->crtc = NULL;
 	}
 
 	list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {