aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_stub.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-07-10 22:05:36 -0400
committerDave Airlie <airlied@linux.ie>2007-07-10 22:05:36 -0400
commit7c158acef8f0e51c3a5f71133aaf402628370a64 (patch)
tree1a767cab78e759cf1e85068a7b1efcce01f6a2a8 /drivers/char/drm/drm_stub.c
parent6f710105f5a4971078c46ae258cbb76db1ee967a (diff)
drm: cleanup list initialisation
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_stub.c')
-rw-r--r--drivers/char/drm/drm_stub.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/drm/drm_stub.c b/drivers/char/drm/drm_stub.c
index 59a9e7e5f128..331163001963 100644
--- a/drivers/char/drm/drm_stub.c
+++ b/drivers/char/drm/drm_stub.c
@@ -60,6 +60,10 @@ static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
60 int retcode; 60 int retcode;
61 61
62 INIT_LIST_HEAD(&dev->filelist); 62 INIT_LIST_HEAD(&dev->filelist);
63 INIT_LIST_HEAD(&dev->ctxlist);
64 INIT_LIST_HEAD(&dev->vmalist);
65 INIT_LIST_HEAD(&dev->maplist);
66
63 spin_lock_init(&dev->count_lock); 67 spin_lock_init(&dev->count_lock);
64 spin_lock_init(&dev->drw_lock); 68 spin_lock_init(&dev->drw_lock);
65 spin_lock_init(&dev->tasklet_lock); 69 spin_lock_init(&dev->tasklet_lock);
@@ -81,8 +85,6 @@ static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
81 return -ENOMEM; 85 return -ENOMEM;
82 } 86 }
83 87
84 INIT_LIST_HEAD(&dev->maplist);
85
86 /* the DRM has 6 basic counters */ 88 /* the DRM has 6 basic counters */
87 dev->counters = 6; 89 dev->counters = 6;
88 dev->types[0] = _DRM_STAT_LOCK; 90 dev->types[0] = _DRM_STAT_LOCK;