From 816a2917099b3ff214dc357c5b41984f34902cf3 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Fri, 29 Oct 2004 17:09:54 +0000 Subject: [PATCH] Switch SPIN_LOCK_UNLOCKED to spin_lock_init() --- linux-core/drm_stub.c | 2 +- linux/drm_drv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c index aaad3bb..207189f 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); diff --git a/linux/drm_drv.h b/linux/drm_drv.h index 6d69839..39b6a75 100644 --- a/linux/drm_drv.h +++ b/linux/drm_drv.h @@ -395,7 +395,7 @@ int DRM(fill_in_dev)(drm_device_t *dev, struct pci_dev *pdev, const struct pci_d { 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 ); -- 2.7.4