diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 454058f655db..0856ff7d3b33 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -285,7 +285,7 @@ lpfc_config_port_post(struct lpfc_hba * phba) | |||
285 | if (phba->SerialNumber[0] == 0) { | 285 | if (phba->SerialNumber[0] == 0) { |
286 | uint8_t *outptr; | 286 | uint8_t *outptr; |
287 | 287 | ||
288 | outptr = (uint8_t *) & phba->fc_nodename.IEEE[0]; | 288 | outptr = &phba->fc_nodename.u.s.IEEE[0]; |
289 | for (i = 0; i < 12; i++) { | 289 | for (i = 0; i < 12; i++) { |
290 | status = *outptr++; | 290 | status = *outptr++; |
291 | j = ((status & 0xf0) >> 4); | 291 | j = ((status & 0xf0) >> 4); |
@@ -1523,8 +1523,8 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) | |||
1523 | * Must done after lpfc_sli_hba_setup() | 1523 | * Must done after lpfc_sli_hba_setup() |
1524 | */ | 1524 | */ |
1525 | 1525 | ||
1526 | fc_host_node_name(host) = wwn_to_u64(phba->fc_nodename.wwn); | 1526 | fc_host_node_name(host) = wwn_to_u64(phba->fc_nodename.u.wwn); |
1527 | fc_host_port_name(host) = wwn_to_u64(phba->fc_portname.wwn); | 1527 | fc_host_port_name(host) = wwn_to_u64(phba->fc_portname.u.wwn); |
1528 | fc_host_supported_classes(host) = FC_COS_CLASS3; | 1528 | fc_host_supported_classes(host) = FC_COS_CLASS3; |
1529 | 1529 | ||
1530 | memset(fc_host_supported_fc4s(host), 0, | 1530 | memset(fc_host_supported_fc4s(host), 0, |