drm/i915: simplify intel_encoder_commit
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 4 May 2012 20:18:23 +0000 (17:18 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 May 2012 12:16:03 +0000 (14:16 +0200)
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 83b785f..ae3f445 100644 (file)
@@ -3125,8 +3125,7 @@ void intel_encoder_commit(struct drm_encoder *encoder)
 {
        struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private;
        struct drm_device *dev = encoder->dev;
-       struct intel_encoder *intel_encoder = to_intel_encoder(encoder);
-       struct intel_crtc *intel_crtc = to_intel_crtc(intel_encoder->base.crtc);
+       struct intel_crtc *intel_crtc = to_intel_crtc(encoder->crtc);
 
        /* lvds has its own version of commit see intel_lvds_commit */
        encoder_funcs->dpms(encoder, DRM_MODE_DPMS_ON);