summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/drm_drv.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c
index 7db9a43153f..17c43a356e7 100644
--- a/sys/dev/pci/drm/drm_drv.c
+++ b/sys/dev/pci/drm/drm_drv.c
@@ -1233,11 +1233,7 @@ drm_gem_object_alloc(struct drm_device *dev, size_t size)
/* uao create can't fail in the 0 case, it just sleeps */
obj->uao = uao_create(size, 0);
obj->size = size;
- simple_lock_init(&obj->uobj.vmobjlock);
- obj->uobj.pgops = &drm_pgops;
- RB_INIT(&obj->uobj.memt);
- obj->uobj.uo_npages = 0;
- obj->uobj.uo_refs = 1;
+ uvm_objinit(&obj->uobj, &drm_pgops, 1);
if (dev->driver->gem_init_object != NULL &&
dev->driver->gem_init_object(obj) != 0) {