diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-07 14:32:47 +0000 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-09-16 22:54:09 -0400 |
commit | 6de76cfc7db8844bc26ab9a60b20f50ad7851833 (patch) | |
tree | d315fe62471ad56d618de84222fee2c97d56e73a /drivers/scsi/aacraid/commctrl.c | |
parent | 9b906779568f009b53254a15b283b53ae4570b93 (diff) | |
download | kernel_goldelico_gta04-6de76cfc7db8844bc26ab9a60b20f50ad7851833.zip kernel_goldelico_gta04-6de76cfc7db8844bc26ab9a60b20f50ad7851833.tar.gz kernel_goldelico_gta04-6de76cfc7db8844bc26ab9a60b20f50ad7851833.tar.bz2 |
[SCSI] aacraid: semaphore cleanup
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: aacraid@adaptec.com
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/aacraid/commctrl.c')
-rw-r--r-- | drivers/scsi/aacraid/commctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c index 1a5bf57..645ddd9 100644 --- a/drivers/scsi/aacraid/commctrl.c +++ b/drivers/scsi/aacraid/commctrl.c @@ -190,7 +190,7 @@ static int open_getadapter_fib(struct aac_dev * dev, void __user *arg) /* * Initialize the mutex used to wait for the next AIF. */ - init_MUTEX_LOCKED(&fibctx->wait_sem); + sema_init(&fibctx->wait_sem, 0); fibctx->wait = 0; /* * Initialize the fibs and set the count of fibs on |