summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gem/i915_gem_userptr.c
diff options
context:
space:
mode:
authorMichał Winiarski <michal.winiarski@intel.com>2021-12-14 21:33:35 +0200
committerMatt Roper <matthew.d.roper@intel.com>2021-12-17 21:50:32 -0800
commit1a9c4db4caf0a504e35f0cfd97e54e07ebc85044 (patch)
tree395f57c3135876218263e471ebdbb3db1f027969 /drivers/gpu/drm/i915/gem/i915_gem_userptr.c
parentc14adcbd1a9648dc9d16dfd12c1e9bc0c14ef6aa (diff)
downloadlinux-1a9c4db4caf0a504e35f0cfd97e54e07ebc85044.tar.gz
linux-1a9c4db4caf0a504e35f0cfd97e54e07ebc85044.tar.bz2
linux-1a9c4db4caf0a504e35f0cfd97e54e07ebc85044.zip
drm/i915/gem: Use to_gt() helper
Use to_gt() helper consistently throughout the codebase. Pure mechanical s/i915->gt/to_gt(i915). No functional changes. Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211214193346.21231-6-andi.shyti@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gem/i915_gem_userptr.c')
-rw-r--r--drivers/gpu/drm/i915/gem/i915_gem_userptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_userptr.c b/drivers/gpu/drm/i915/gem/i915_gem_userptr.c
index 3173c9f9a040..3cc01c30dd62 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_userptr.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_userptr.c
@@ -529,7 +529,7 @@ i915_gem_userptr_ioctl(struct drm_device *dev,
* On almost all of the older hw, we cannot tell the GPU that
* a page is readonly.
*/
- if (!dev_priv->gt.vm->has_read_only)
+ if (!to_gt(dev_priv)->vm->has_read_only)
return -ENODEV;
}