From 9a33f62be1c478334572ea9384af60c37d1644a0 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Mon, 22 Jun 2009 23:07:26 +0200 Subject: drm: Strip old ttm. Signed-off-by: Thomas Hellstrom --- linux-core/drm_stub.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'linux-core/drm_stub.c') diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c index 1518bc6d..6e68f677 100644 --- a/linux-core/drm_stub.c +++ b/linux-core/drm_stub.c @@ -98,7 +98,6 @@ static int drm_fill_in_dev(struct drm_device * dev, struct pci_dev *pdev, init_timer(&dev->timer); mutex_init(&dev->struct_mutex); mutex_init(&dev->ctxlist_mutex); - mutex_init(&dev->bm.evict_mutex); idr_init(&dev->drw_idr); @@ -115,17 +114,6 @@ static int drm_fill_in_dev(struct drm_device * dev, struct pci_dev *pdev, if (drm_ht_create(&dev->map_hash, DRM_MAP_HASH_ORDER)) { return -ENOMEM; } - if (drm_mm_init(&dev->offset_manager, DRM_FILE_PAGE_OFFSET_START, - DRM_FILE_PAGE_OFFSET_SIZE)) { - drm_ht_remove(&dev->map_hash); - return -ENOMEM; - } - - if (drm_ht_create(&dev->object_hash, DRM_OBJECT_HASH_ORDER)) { - drm_ht_remove(&dev->map_hash); - drm_mm_takedown(&dev->offset_manager); - return -ENOMEM; - } /* the DRM has 6 counters */ dev->counters = 6; @@ -171,8 +159,6 @@ static int drm_fill_in_dev(struct drm_device * dev, struct pci_dev *pdev, } } - drm_fence_manager_init(dev); - return 0; error_out_unreg: -- cgit v1.2.3