diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2009-08-20 04:29:08 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-20 04:58:13 -0400 |
commit | 7f5f4db2d50ea1af8f160686d2e97bbfa5102b4f (patch) | |
tree | f4111bd9f9ddb0f815ad52cb87d55253034eb322 /drivers/gpu/drm/radeon | |
parent | 51c8b4071d84d46cc100baa5931ad06b2a823c95 (diff) |
drm/ttm: Fixes for "Make parts of a struct ttm_bo_device global"
ttm:
Remove a stray debug printout.
Remove a re-init of the lru spinlock at device init.
radeon:
Fix the size of the bo_global allocation.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index 6f5ad0802fcd..0a85e7b5d592 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c | |||
@@ -86,7 +86,7 @@ static int radeon_ttm_global_init(struct radeon_device *rdev) | |||
86 | rdev->mman.mem_global_ref.object; | 86 | rdev->mman.mem_global_ref.object; |
87 | global_ref = &rdev->mman.bo_global_ref.ref; | 87 | global_ref = &rdev->mman.bo_global_ref.ref; |
88 | global_ref->global_type = TTM_GLOBAL_TTM_BO; | 88 | global_ref->global_type = TTM_GLOBAL_TTM_BO; |
89 | global_ref->size = sizeof(struct ttm_mem_global); | 89 | global_ref->size = sizeof(struct ttm_bo_global); |
90 | global_ref->init = &ttm_bo_global_init; | 90 | global_ref->init = &ttm_bo_global_init; |
91 | global_ref->release = &ttm_bo_global_release; | 91 | global_ref->release = &ttm_bo_global_release; |
92 | r = ttm_global_item_ref(global_ref); | 92 | r = ttm_global_item_ref(global_ref); |