]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/i915: Use IS_HSW_ULT() in a HSW specific code path
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 1 Oct 2014 19:04:13 +0000 (20:04 +0100)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 4 Feb 2015 10:58:15 +0000 (10:58 +0000)
commit bcef6d5aa5746e6d3955f2dbc8e00d58d2c8adbd upstream.

No need to add the BDW pci ULT/ULX checks inside a if (IS_HASWELL(dev))
code path.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[ luis: backported to 3.16: adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/gpu/drm/i915/i915_drv.c

index 651e65e051c08a8e25189719aa38f6226f699271..b470281c98e3aa958d640a949dfd8fdc2acf5281 100644 (file)
@@ -450,7 +450,7 @@ void intel_detect_pch(struct drm_device *dev)
                                dev_priv->pch_type = PCH_LPT;
                                DRM_DEBUG_KMS("Found LynxPoint PCH\n");
                                WARN_ON(!IS_HASWELL(dev));
-                               WARN_ON(IS_ULT(dev));
+                               WARN_ON(IS_HSW_ULT(dev));
                        } else if (IS_BROADWELL(dev)) {
                                dev_priv->pch_type = PCH_LPT;
                                dev_priv->pch_id =
@@ -461,7 +461,7 @@ void intel_detect_pch(struct drm_device *dev)
                                dev_priv->pch_type = PCH_LPT;
                                DRM_DEBUG_KMS("Found LynxPoint LP PCH\n");
                                WARN_ON(!IS_HASWELL(dev));
-                               WARN_ON(!IS_ULT(dev));
+                               WARN_ON(!IS_HSW_ULT(dev));
                        } else
                                continue;