drm/i915: Writing proper check for reading of pipe status reg
authorSonika Jindal <sonika.jindal@intel.com>
Mon, 21 Jul 2014 09:53:43 +0000 (15:23 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Jul 2014 05:05:44 +0000 (07:05 +0200)
Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index c18c2a71afacbbabe953cc515dc927588b75b4a6..2df686064bda1915868c769fbb084f5571a189ae 100644 (file)
@@ -13225,7 +13225,7 @@ intel_display_capture_error_state(struct drm_device *dev)
 
                error->pipe[i].source = I915_READ(PIPESRC(i));
 
-               if (!HAS_PCH_SPLIT(dev))
+               if (HAS_GMCH_DISPLAY(dev))
                        error->pipe[i].stat = I915_READ(PIPESTAT(i));
        }