Commit 3f75e537 authored by Dave Airlie's avatar Dave Airlie

drm: use spin_lock_init instead of SPIN_LOCK_UNLOCKED

From: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent edfa13cc
...@@ -57,7 +57,7 @@ static int drm_fill_in_dev(drm_device_t *dev, struct pci_dev *pdev, const struct ...@@ -57,7 +57,7 @@ static int drm_fill_in_dev(drm_device_t *dev, struct pci_dev *pdev, const struct
{ {
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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment