Commit 0f550a21 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Chris Wilson
parent c56b89f1
......@@ -7554,7 +7554,7 @@ unsigned long i915_chipset_val(struct drm_i915_private *dev_priv)
{
unsigned long val;
if (INTEL_GEN(dev_priv) != 5)
if (!IS_GEN5(dev_priv))
return 0;
spin_lock_irq(&mchdev_lock);
......@@ -7638,7 +7638,7 @@ static void __i915_update_gfx_val(struct drm_i915_private *dev_priv)
void i915_update_gfx_val(struct drm_i915_private *dev_priv)
{
if (INTEL_GEN(dev_priv) != 5)
if (!IS_GEN5(dev_priv))
return;
spin_lock_irq(&mchdev_lock);
......@@ -7689,7 +7689,7 @@ unsigned long i915_gfx_val(struct drm_i915_private *dev_priv)
{
unsigned long val;
if (INTEL_GEN(dev_priv) != 5)
if (!IS_GEN5(dev_priv))
return 0;
spin_lock_irq(&mchdev_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment