aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
authormatthias@kaehlcke.net <matthias@kaehlcke.net>2008-05-13 01:21:11 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-05-15 11:39:29 -0400
commit6c2f527cb84cbd7d2d8a668c979e70bf78980ccc (patch)
tree5674b1504695f593bab09a32663beac82d77a20a /drivers/scsi/qla2xxx/qla_os.c
parente1e82b6f0df0c5175ddd3d4f8862507aa71da8e9 (diff)
[SCSI] qla2xxx: Convert vport_sem to a mutex
The semaphore vport_sem is used as a mutex. Convert it to the mutex API. Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 9982ecd9c612..817f62fbdd83 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -1632,7 +1632,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
1632 /* load the F/W, read paramaters, and init the H/W */ 1632 /* load the F/W, read paramaters, and init the H/W */
1633 ha->instance = num_hosts; 1633 ha->instance = num_hosts;
1634 1634
1635 init_MUTEX(&ha->vport_sem); 1635 mutex_init(&ha->vport_lock);
1636 init_completion(&ha->mbx_cmd_comp); 1636 init_completion(&ha->mbx_cmd_comp);
1637 complete(&ha->mbx_cmd_comp); 1637 complete(&ha->mbx_cmd_comp);
1638 init_completion(&ha->mbx_intr_comp); 1638 init_completion(&ha->mbx_intr_comp);