From: Damien Lespiau Date: Sat, 30 Aug 2014 15:51:03 +0000 (+0100) Subject: drm/i915: Don't restrict i915_wa_registers to BDW X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd34f90c6071bbc124572dae83b67044b1c663cc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/i915: Don't restrict i915_wa_registers to BDW We have CHV code that already makes the test obsolete. Besides, when num_wa_regs is 0 (platforms not gathering that W/A data), we expose something sensible already. Signed-off-by: Damien Lespiau Reviewed-by: Arun Siluvery Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index fc3d582a9530..cd4f045f915d 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -2636,11 +2636,6 @@ static int i915_wa_registers(struct seq_file *m, void *unused) struct drm_device *dev = node->minor->dev; struct drm_i915_private *dev_priv = dev->dev_private; - if (!IS_BROADWELL(dev)) { - DRM_DEBUG_DRIVER("Workaround table not available !!\n"); - return -EINVAL; - } - ret = mutex_lock_interruptible(&dev->struct_mutex); if (ret) return ret;