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>
This commit is contained in:

committed by
Martin K. Petersen

parent
74d2fd488d
commit
249cf320bd
@@ -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);
|
||||
|
Reference in New Issue
Block a user