diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index c7f19ec88f98..9839494528ae 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -2537,6 +2537,20 @@ void intel_encoder_commit (struct drm_encoder *encoder) | |||
2537 | encoder_funcs->dpms(encoder, DRM_MODE_DPMS_ON); | 2537 | encoder_funcs->dpms(encoder, DRM_MODE_DPMS_ON); |
2538 | } | 2538 | } |
2539 | 2539 | ||
2540 | void intel_encoder_destroy(struct drm_encoder *encoder) | ||
2541 | { | ||
2542 | struct intel_encoder *intel_encoder = enc_to_intel_encoder(encoder); | ||
2543 | |||
2544 | if (intel_encoder->ddc_bus) | ||
2545 | intel_i2c_destroy(intel_encoder->ddc_bus); | ||
2546 | |||
2547 | if (intel_encoder->i2c_bus) | ||
2548 | intel_i2c_destroy(intel_encoder->i2c_bus); | ||
2549 | |||
2550 | drm_encoder_cleanup(encoder); | ||
2551 | kfree(intel_encoder); | ||
2552 | } | ||
2553 | |||
2540 | static bool intel_crtc_mode_fixup(struct drm_crtc *crtc, | 2554 | static bool intel_crtc_mode_fixup(struct drm_crtc *crtc, |
2541 | struct drm_display_mode *mode, | 2555 | struct drm_display_mode *mode, |
2542 | struct drm_display_mode *adjusted_mode) | 2556 | struct drm_display_mode *adjusted_mode) |