aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2007-09-20 17:07:45 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:50:22 -0400
commitf363b9434a464e72927b468ba33cb548f482669f (patch)
treec6e21249030879401929ec66c3fbea19c56527c5 /drivers/scsi/qla2xxx/qla_os.c
parente745759a0f662992327537be4ec01d9a43542fc4 (diff)
[SCSI] qla2xxx: Use shost_priv().
Drop usage of legacy to_qla_host() macro. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 4314f94bd477..a6bb8d0ecf13 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -379,7 +379,7 @@ qla2x00_get_new_sp(scsi_qla_host_t *ha, fc_port_t *fcport,
379static int 379static int
380qla2x00_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)) 380qla2x00_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
381{ 381{
382 scsi_qla_host_t *ha = to_qla_host(cmd->device->host); 382 scsi_qla_host_t *ha = shost_priv(cmd->device->host);
383 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; 383 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
384 struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device)); 384 struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device));
385 srb_t *sp; 385 srb_t *sp;
@@ -445,7 +445,7 @@ qc_fail_command:
445static int 445static int
446qla24xx_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)) 446qla24xx_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
447{ 447{
448 scsi_qla_host_t *ha = to_qla_host(cmd->device->host); 448 scsi_qla_host_t *ha = shost_priv(cmd->device->host);
449 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; 449 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
450 struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device)); 450 struct fc_rport *rport = starget_to_rport(scsi_target(cmd->device));
451 srb_t *sp; 451 srb_t *sp;
@@ -663,7 +663,7 @@ qla2x00_block_error_handler(struct scsi_cmnd *cmnd)
663static int 663static int
664qla2xxx_eh_abort(struct scsi_cmnd *cmd) 664qla2xxx_eh_abort(struct scsi_cmnd *cmd)
665{ 665{
666 scsi_qla_host_t *ha = to_qla_host(cmd->device->host); 666 scsi_qla_host_t *ha = shost_priv(cmd->device->host);
667 srb_t *sp; 667 srb_t *sp;
668 int ret, i; 668 int ret, i;
669 unsigned int id, lun; 669 unsigned int id, lun;
@@ -803,7 +803,7 @@ qla2x00_eh_wait_for_pending_target_commands(scsi_qla_host_t *ha, unsigned int t)
803static int 803static int
804qla2xxx_eh_device_reset(struct scsi_cmnd *cmd) 804qla2xxx_eh_device_reset(struct scsi_cmnd *cmd)
805{ 805{
806 scsi_qla_host_t *ha = to_qla_host(cmd->device->host); 806 scsi_qla_host_t *ha = shost_priv(cmd->device->host);
807 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; 807 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
808 int ret = FAILED; 808 int ret = FAILED;
809 unsigned int id, lun; 809 unsigned int id, lun;
@@ -932,7 +932,7 @@ qla2x00_eh_wait_for_pending_commands(scsi_qla_host_t *ha)
932static int 932static int
933qla2xxx_eh_bus_reset(struct scsi_cmnd *cmd) 933qla2xxx_eh_bus_reset(struct scsi_cmnd *cmd)
934{ 934{
935 scsi_qla_host_t *ha = to_qla_host(cmd->device->host); 935 scsi_qla_host_t *ha = shost_priv(cmd->device->host);
936 scsi_qla_host_t *pha = to_qla_parent(ha); 936 scsi_qla_host_t *pha = to_qla_parent(ha);
937 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; 937 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
938 int ret = FAILED; 938 int ret = FAILED;
@@ -992,7 +992,7 @@ eh_bus_reset_done:
992static int 992static int
993qla2xxx_eh_host_reset(struct scsi_cmnd *cmd) 993qla2xxx_eh_host_reset(struct scsi_cmnd *cmd)
994{ 994{
995 scsi_qla_host_t *ha = to_qla_host(cmd->device->host); 995 scsi_qla_host_t *ha = shost_priv(cmd->device->host);
996 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; 996 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
997 int ret = FAILED; 997 int ret = FAILED;
998 unsigned int id, lun; 998 unsigned int id, lun;
@@ -1142,7 +1142,7 @@ qla2xxx_slave_alloc(struct scsi_device *sdev)
1142static int 1142static int
1143qla2xxx_slave_configure(struct scsi_device *sdev) 1143qla2xxx_slave_configure(struct scsi_device *sdev)
1144{ 1144{
1145 scsi_qla_host_t *ha = to_qla_host(sdev->host); 1145 scsi_qla_host_t *ha = shost_priv(sdev->host);
1146 struct fc_rport *rport = starget_to_rport(sdev->sdev_target); 1146 struct fc_rport *rport = starget_to_rport(sdev->sdev_target);
1147 1147
1148 if (sdev->tagged_supported) 1148 if (sdev->tagged_supported)
@@ -1543,7 +1543,7 @@ iospace_error_exit:
1543static void 1543static void
1544qla2xxx_scan_start(struct Scsi_Host *shost) 1544qla2xxx_scan_start(struct Scsi_Host *shost)
1545{ 1545{
1546 scsi_qla_host_t *ha = (scsi_qla_host_t *)shost->hostdata; 1546 scsi_qla_host_t *ha = shost_priv(shost);
1547 1547
1548 set_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags); 1548 set_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags);
1549 set_bit(LOCAL_LOOP_UPDATE, &ha->dpc_flags); 1549 set_bit(LOCAL_LOOP_UPDATE, &ha->dpc_flags);
@@ -1553,7 +1553,7 @@ qla2xxx_scan_start(struct Scsi_Host *shost)
1553static int 1553static int
1554qla2xxx_scan_finished(struct Scsi_Host *shost, unsigned long time) 1554qla2xxx_scan_finished(struct Scsi_Host *shost, unsigned long time)
1555{ 1555{
1556 scsi_qla_host_t *ha = (scsi_qla_host_t *)shost->hostdata; 1556 scsi_qla_host_t *ha = shost_priv(shost);
1557 1557
1558 if (!ha->host) 1558 if (!ha->host)
1559 return 1; 1559 return 1;
@@ -1600,7 +1600,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
1600 } 1600 }
1601 1601
1602 /* Clear our data area */ 1602 /* Clear our data area */
1603 ha = (scsi_qla_host_t *)host->hostdata; 1603 ha = shost_priv(host);
1604 memset(ha, 0, sizeof(scsi_qla_host_t)); 1604 memset(ha, 0, sizeof(scsi_qla_host_t));
1605 1605
1606 ha->pdev = pdev; 1606 ha->pdev = pdev;