drm/i915: Do not check crtc_state->active in intel_color_load_luts.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 30 Mar 2016 15:16:35 +0000 (17:16 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 31 Mar 2016 10:46:07 +0000 (12:46 +0200)
This is already tested by its callers.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459350996-4957-3-git-send-email-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/intel_color.c

index 9cffa638c351623942dd2abeb6c3e6337a1abed7..1b3f97449395fe0a4f2c2c53f34ec1b0d54161c2 100644 (file)
@@ -487,10 +487,6 @@ void intel_color_load_luts(struct drm_crtc_state *crtc_state)
        struct drm_device *dev = crtc_state->crtc->dev;
        struct drm_i915_private *dev_priv = dev->dev_private;
 
-       /* The clocks have to be on to load the palette. */
-       if (!crtc_state->active)
-               return;
-
        dev_priv->display.load_luts(crtc_state);
 }