From: Jani Nikula Date: Tue, 24 Sep 2013 13:44:39 +0000 (+0300) Subject: drm/i915: backlight combination mode bit is gen4 only X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9c638d5c6fb96770e77637547629a32cb362075;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/i915: backlight combination mode bit is gen4 only Not valid for later non-PCH split platforms such as VLV. Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 3bc89a6bc3ee..8f025c694733 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -329,7 +329,7 @@ static int is_backlight_combination_mode(struct drm_device *dev) { struct drm_i915_private *dev_priv = dev->dev_private; - if (INTEL_INFO(dev)->gen >= 4) + if (IS_GEN4(dev)) return I915_READ(BLC_PWM_CTL2) & BLM_COMBINATION_MODE; if (IS_GEN2(dev))