aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_attr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index 287690853caf..2caf841cbba9 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -886,9 +886,13 @@ qla2x00_get_host_speed(struct Scsi_Host *shost)
886static void 886static void
887qla2x00_get_host_port_type(struct Scsi_Host *shost) 887qla2x00_get_host_port_type(struct Scsi_Host *shost)
888{ 888{
889 scsi_qla_host_t *ha = to_qla_parent(shost_priv(shost)); 889 scsi_qla_host_t *ha = shost_priv(shost);
890 uint32_t port_type = FC_PORTTYPE_UNKNOWN; 890 uint32_t port_type = FC_PORTTYPE_UNKNOWN;
891 891
892 if (ha->parent) {
893 fc_host_port_type(shost) = FC_PORTTYPE_NPIV;
894 return;
895 }
892 switch (ha->current_topology) { 896 switch (ha->current_topology) {
893 case ISP_CFG_NL: 897 case ISP_CFG_NL:
894 port_type = FC_PORTTYPE_LPORT; 898 port_type = FC_PORTTYPE_LPORT;