diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-04-21 04:32:11 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-10 16:19:17 -0400 |
commit | 0622a53c60fbf48d3b85efc4995f4c152c254cf4 (patch) | |
tree | 937097818e6302c15572c57f0dd0cb3084eccd26 | |
parent | 6492711d05b85f9794809cb4a961ce8cdc6fa720 (diff) |
drm/i915: Remove dead code from intel_release_load_detect_pipe()
As we now never attempt to steal a crtc for load detection, we either
set a mode on a new pipe, or change the dpms mode on an existing pipe.
Never both, so we can simplify the code slightly.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 7413a070bf16..e1fcd89562df 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -5577,16 +5577,14 @@ void intel_release_load_detect_pipe(struct intel_encoder *intel_encoder, | |||
5577 | struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; | 5577 | struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; |
5578 | 5578 | ||
5579 | if (old->load_detect_temp) { | 5579 | if (old->load_detect_temp) { |
5580 | encoder->crtc = NULL; | ||
5581 | connector->encoder = NULL; | 5580 | connector->encoder = NULL; |
5582 | crtc->enabled = drm_helper_crtc_in_use(crtc); | ||
5583 | drm_helper_disable_unused_functions(dev); | 5581 | drm_helper_disable_unused_functions(dev); |
5582 | return; | ||
5584 | } | 5583 | } |
5585 | 5584 | ||
5586 | /* Switch crtc and encoder back off if necessary */ | 5585 | /* Switch crtc and encoder back off if necessary */ |
5587 | if (crtc->enabled && old->dpms_mode != DRM_MODE_DPMS_ON) { | 5586 | if (old->dpms_mode != DRM_MODE_DPMS_ON) { |
5588 | if (encoder->crtc == crtc) | 5587 | encoder_funcs->dpms(encoder, old->dpms_mode); |
5589 | encoder_funcs->dpms(encoder, old->dpms_mode); | ||
5590 | crtc_funcs->dpms(crtc, old->dpms_mode); | 5588 | crtc_funcs->dpms(crtc, old->dpms_mode); |
5591 | } | 5589 | } |
5592 | } | 5590 | } |