aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_mid.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_mid.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_mid.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_mid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c
index 54dc415d8b53..1a2cdcd915c0 100644
--- a/drivers/scsi/qla2xxx/qla_mid.c
+++ b/drivers/scsi/qla2xxx/qla_mid.c
@@ -363,7 +363,7 @@ qla2x00_do_dpc_all_vps(scsi_qla_host_t *ha)
363int 363int
364qla24xx_vport_create_req_sanity_check(struct fc_vport *fc_vport) 364qla24xx_vport_create_req_sanity_check(struct fc_vport *fc_vport)
365{ 365{
366 scsi_qla_host_t *ha = (scsi_qla_host_t *) fc_vport->shost->hostdata; 366 scsi_qla_host_t *ha = shost_priv(fc_vport->shost);
367 scsi_qla_host_t *vha; 367 scsi_qla_host_t *vha;
368 uint8_t port_name[WWN_SIZE]; 368 uint8_t port_name[WWN_SIZE];
369 369
@@ -397,7 +397,7 @@ qla24xx_vport_create_req_sanity_check(struct fc_vport *fc_vport)
397scsi_qla_host_t * 397scsi_qla_host_t *
398qla24xx_create_vhost(struct fc_vport *fc_vport) 398qla24xx_create_vhost(struct fc_vport *fc_vport)
399{ 399{
400 scsi_qla_host_t *ha = (scsi_qla_host_t *) fc_vport->shost->hostdata; 400 scsi_qla_host_t *ha = shost_priv(fc_vport->shost);
401 scsi_qla_host_t *vha; 401 scsi_qla_host_t *vha;
402 struct Scsi_Host *host; 402 struct Scsi_Host *host;
403 403
@@ -409,7 +409,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport)
409 return(NULL); 409 return(NULL);
410 } 410 }
411 411
412 vha = (scsi_qla_host_t *)host->hostdata; 412 vha = shost_priv(host);
413 413
414 /* clone the parent hba */ 414 /* clone the parent hba */
415 memcpy(vha, ha, sizeof (scsi_qla_host_t)); 415 memcpy(vha, ha, sizeof (scsi_qla_host_t));