summaryrefslogtreecommitdiff
path: root/drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-10-30 09:06:57 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2010-10-30 10:12:50 (GMT)
commit45f4d0243525b6bc747c946937ced437b135a84d (patch)
tree02849b0719997d5017763fe8de44a007124ac3c1 /drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c
parent51dfacdef38b1dd6fc58b03dd1725d517516b115 (diff)
downloadlinux-fsl-qoriq-45f4d0243525b6bc747c946937ced437b135a84d.tar.xz
staging: Final semaphore cleanup
Fixup the last remaining users of DECLARE_MUTEX and init_MUTEX. Scripted conversion, resulting code is binary equivalent. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@suse.de> LKML-Reference: <20100907125057.278833764@linutronix.de>
Diffstat (limited to 'drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c')
-rw-r--r--drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c b/drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c
index 24e959e..0bbb8a3 100644
--- a/drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c
+++ b/drivers/staging/westbridge/astoria/block/cyasblkdev_queue.c
@@ -334,7 +334,7 @@ int cyasblkdev_init_queue(struct cyasblkdev_queue *bq, spinlock_t *lock)
init_completion(&bq->thread_complete);
init_waitqueue_head(&bq->thread_wq);
- init_MUTEX(&bq->thread_sem);
+ sema_init(&bq->thread_sem, 1);
ret = kernel_thread(cyasblkdev_queue_thread, bq, CLONE_KERNEL);
if (ret >= 0) {