aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_fops.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-05-27 07:26:52 +1000
committerDave Airlie <airlied@linux.ie>2007-05-27 07:26:52 +1000
commitf64674743a49c242e4f24cbb7599c1c21c035a4f (patch)
treece437c1c6d97fdc17a134609d2cb3ff3d59df59b /linux-core/drm_fops.c
parent2bb7703698bef1f599295126ca3834d37a8596c0 (diff)
drm: convert drawable handling to use Linux idr
This cleans this code up a lot and uses the generic Linux idr which is designed for this. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'linux-core/drm_fops.c')
-rw-r--r--linux-core/drm_fops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c
index fce2be97..9625d8f5 100644
--- a/linux-core/drm_fops.c
+++ b/linux-core/drm_fops.c
@@ -82,6 +82,9 @@ static int drm_setup(drm_device_t * dev)
INIT_LIST_HEAD(&dev->ctxlist);
INIT_LIST_HEAD(&dev->vmalist);
+ INIT_LIST_HEAD(&dev->drwlist);
+ idr_init(&dev->drw_idr);
+
dev->sigdata.lock = NULL;
init_waitqueue_head(&dev->lock.lock_queue);
dev->queue_count = 0;