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>
This commit is contained in:
Dave Airlie 2009-09-02 14:00:11 +10:00
parent a3a0544b2c
commit 9c552dd793
1 changed files with 2 additions and 2 deletions

View File

@ -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) {