summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c
index aaad3bb6..207189f1 100644
--- a/linux-core/drm_stub.c
+++ b/linux-core/drm_stub.c
@@ -60,7 +60,7 @@ static int fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
{
int retcode;
- dev->count_lock = SPIN_LOCK_UNLOCKED;
+ spin_lock_init(&dev->count_lock);
init_timer(&dev->timer);
sema_init(&dev->struct_sem, 1);
sema_init(&dev->ctxlist_sem, 1);