summaryrefslogtreecommitdiff
path: root/bsd-core/drm_drv.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-07-19 06:17:58 -0700
committerEric Anholt <eric@anholt.net>2007-07-19 06:17:58 -0700
commite544286eae71a6b150af4d86096895c14e42c36e (patch)
tree3b2d72d56fab0687290506944691e041821c8cea /bsd-core/drm_drv.c
parentecf3fbe599cd72c495acf339ae24f3a9e01fdb36 (diff)
FreeBSD: Fix the recently added drawable add/remove/update code.
Diffstat (limited to 'bsd-core/drm_drv.c')
-rw-r--r--bsd-core/drm_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c
index 4be4cd30..75866b1b 100644
--- a/bsd-core/drm_drv.c
+++ b/bsd-core/drm_drv.c
@@ -200,6 +200,7 @@ int drm_attach(device_t nbdev, drm_pci_id_list_t *idlist)
"dri/card%d", unit);
#if __FreeBSD_version >= 500000
mtx_init(&dev->dev_lock, "drm device", NULL, MTX_DEF);
+ mtx_init(&dev->drw_lock, "drmdrw", NULL, MTX_DEF);
#endif
id_entry = drm_find_description(pci_get_vendor(dev->device),