From: Sonika Jindal Date: Mon, 21 Jul 2014 09:53:43 +0000 (+0530) Subject: drm/i915: Writing proper check for reading of pipe status reg X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3abfce77f7229116fa56aedfe3b79ce5ccde3d72;p=openwrt%2Fstaging%2Fblogic.git drm/i915: Writing proper check for reading of pipe status reg Signed-off-by: Sonika Jindal Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index c18c2a71afac..2df686064bda 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -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)); }