diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 60dcee3eda44..6b7204638603 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -1669,7 +1669,7 @@ static int i915_forcewake_open(struct inode *inode, struct file *file) | |||
1669 | struct drm_i915_private *dev_priv = dev->dev_private; | 1669 | struct drm_i915_private *dev_priv = dev->dev_private; |
1670 | int ret; | 1670 | int ret; |
1671 | 1671 | ||
1672 | if (!IS_GEN6(dev)) | 1672 | if (INTEL_INFO(dev)->gen < 6) |
1673 | return 0; | 1673 | return 0; |
1674 | 1674 | ||
1675 | ret = mutex_lock_interruptible(&dev->struct_mutex); | 1675 | ret = mutex_lock_interruptible(&dev->struct_mutex); |
@@ -1686,7 +1686,7 @@ int i915_forcewake_release(struct inode *inode, struct file *file) | |||
1686 | struct drm_device *dev = inode->i_private; | 1686 | struct drm_device *dev = inode->i_private; |
1687 | struct drm_i915_private *dev_priv = dev->dev_private; | 1687 | struct drm_i915_private *dev_priv = dev->dev_private; |
1688 | 1688 | ||
1689 | if (!IS_GEN6(dev)) | 1689 | if (INTEL_INFO(dev)->gen < 6) |
1690 | return 0; | 1690 | return 0; |
1691 | 1691 | ||
1692 | /* | 1692 | /* |