Switch SPIN_LOCK_UNLOCKED to spin_lock_init()

main
Jon Smirl 2004-10-29 17:09:54 +00:00
parent c611cb9f17
commit 816a291709
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ static int fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
{ {
int retcode; int retcode;
dev->count_lock = SPIN_LOCK_UNLOCKED; spin_lock_init(&dev->count_lock);
init_timer(&dev->timer); init_timer(&dev->timer);
sema_init(&dev->struct_sem, 1); sema_init(&dev->struct_sem, 1);
sema_init(&dev->ctxlist_sem, 1); sema_init(&dev->ctxlist_sem, 1);

View File

@ -395,7 +395,7 @@ int DRM(fill_in_dev)(drm_device_t *dev, struct pci_dev *pdev, const struct pci_d
{ {
int retcode; int retcode;
dev->count_lock = SPIN_LOCK_UNLOCKED; spin_lock_init(&dev->count_lock);
init_timer( &dev->timer ); init_timer( &dev->timer );
sema_init( &dev->struct_sem, 1 ); sema_init( &dev->struct_sem, 1 );
sema_init( &dev->ctxlist_sem, 1 ); sema_init( &dev->ctxlist_sem, 1 );