diff options
author | Binoy Jayan <binoy.jayan@linaro.org> | 2017-06-08 12:07:31 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-13 03:17:22 +0200 |
commit | 249cf320bd5dd3490252cb9f3cdef41f7d1caacc (patch) | |
tree | eddce6a8756bb0d7e902e87dae13292f220b3c36 /drivers/scsi/esas2r/esas2r_init.c | |
parent | scsi: esas2r: Replace semaphore fm_api_semaphore with mutex (diff) | |
download | linux-249cf320bd5dd3490252cb9f3cdef41f7d1caacc.tar.xz linux-249cf320bd5dd3490252cb9f3cdef41f7d1caacc.zip |
scsi: esas2r: Replace semaphore fs_api_semaphore with mutex
The semaphore 'fs_api_semaphore' is used as a simple mutex, so it should
be written as one. Semaphores are going away in the future.
Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/esas2r/esas2r_init.c')
-rw-r--r-- | drivers/scsi/esas2r/esas2r_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c index ad85b33ab6b4..5b14dd29b764 100644 --- a/drivers/scsi/esas2r/esas2r_init.c +++ b/drivers/scsi/esas2r/esas2r_init.c @@ -328,7 +328,7 @@ int esas2r_init_adapter(struct Scsi_Host *host, struct pci_dev *pcid, spin_lock_init(&a->request_lock); spin_lock_init(&a->fw_event_lock); mutex_init(&a->fm_api_mutex); - sema_init(&a->fs_api_semaphore, 1); + mutex_init(&a->fs_api_mutex); sema_init(&a->nvram_semaphore, 1); esas2r_fw_event_off(a); |