diff options
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 0d48ebe6ac9d..4805385a49ed 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -3267,10 +3267,8 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc) | |||
3267 | intel_crtc_update_cursor(crtc, true); | 3267 | intel_crtc_update_cursor(crtc, true); |
3268 | 3268 | ||
3269 | encoders: | 3269 | encoders: |
3270 | for_each_encoder_on_crtc(dev, crtc, encoder) { | 3270 | for_each_encoder_on_crtc(dev, crtc, encoder) |
3271 | if (encoder->enable) | 3271 | encoder->enable(encoder); |
3272 | encoder->enable(encoder); | ||
3273 | } | ||
3274 | } | 3272 | } |
3275 | 3273 | ||
3276 | static void ironlake_crtc_disable(struct drm_crtc *crtc) | 3274 | static void ironlake_crtc_disable(struct drm_crtc *crtc) |
@@ -3285,10 +3283,8 @@ static void ironlake_crtc_disable(struct drm_crtc *crtc) | |||
3285 | 3283 | ||
3286 | /* XXX: For compatability with the crtc helper code, call the encoder's | 3284 | /* XXX: For compatability with the crtc helper code, call the encoder's |
3287 | * disable function unconditionally for now. */ | 3285 | * disable function unconditionally for now. */ |
3288 | for_each_encoder_on_crtc(dev, crtc, encoder) { | 3286 | for_each_encoder_on_crtc(dev, crtc, encoder) |
3289 | if (encoder->disable) | 3287 | encoder->disable(encoder); |
3290 | encoder->disable(encoder); | ||
3291 | } | ||
3292 | 3288 | ||
3293 | if (!intel_crtc->active) | 3289 | if (!intel_crtc->active) |
3294 | return; | 3290 | return; |
@@ -3412,10 +3408,8 @@ static void i9xx_crtc_enable(struct drm_crtc *crtc) | |||
3412 | intel_crtc_update_cursor(crtc, true); | 3408 | intel_crtc_update_cursor(crtc, true); |
3413 | 3409 | ||
3414 | encoders: | 3410 | encoders: |
3415 | for_each_encoder_on_crtc(dev, crtc, encoder) { | 3411 | for_each_encoder_on_crtc(dev, crtc, encoder) |
3416 | if (encoder->enable) | 3412 | encoder->enable(encoder); |
3417 | encoder->enable(encoder); | ||
3418 | } | ||
3419 | } | 3413 | } |
3420 | 3414 | ||
3421 | static void i9xx_crtc_disable(struct drm_crtc *crtc) | 3415 | static void i9xx_crtc_disable(struct drm_crtc *crtc) |
@@ -3429,10 +3423,8 @@ static void i9xx_crtc_disable(struct drm_crtc *crtc) | |||
3429 | 3423 | ||
3430 | /* XXX: For compatability with the crtc helper code, call the encoder's | 3424 | /* XXX: For compatability with the crtc helper code, call the encoder's |
3431 | * disable function unconditionally for now. */ | 3425 | * disable function unconditionally for now. */ |
3432 | for_each_encoder_on_crtc(dev, crtc, encoder) { | 3426 | for_each_encoder_on_crtc(dev, crtc, encoder) |
3433 | if (encoder->disable) | 3427 | encoder->disable(encoder); |
3434 | encoder->disable(encoder); | ||
3435 | } | ||
3436 | 3428 | ||
3437 | if (!intel_crtc->active) | 3429 | if (!intel_crtc->active) |
3438 | return; | 3430 | return; |