aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-01-07 14:47:35 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-01-17 16:07:56 -0500
commit0fa877965194fa79fe87944844185d90cfc35352 (patch)
tree0ba374c54fd3970efc9b11933518284c281cb228 /drivers/gpu/drm/i915/i915_gem.c
parent56c844e539f1f6f5768c5f73f119e6f4aed9d320 (diff)
drm/i915: use gtt_get_size() instead of open coding it
Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 718574eb66de..313bdbaba3cd 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1435,7 +1435,7 @@ i915_gem_release_mmap(struct drm_i915_gem_object *obj)
1435 obj->fault_mappable = false; 1435 obj->fault_mappable = false;
1436} 1436}
1437 1437
1438static uint32_t 1438uint32_t
1439i915_gem_get_gtt_size(struct drm_device *dev, uint32_t size, int tiling_mode) 1439i915_gem_get_gtt_size(struct drm_device *dev, uint32_t size, int tiling_mode)
1440{ 1440{
1441 uint32_t gtt_size; 1441 uint32_t gtt_size;