diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_nx.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_nx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c index caf627ba7fa8..9ce3a8f8754f 100644 --- a/drivers/scsi/qla2xxx/qla_nx.c +++ b/drivers/scsi/qla2xxx/qla_nx.c | |||
@@ -1620,7 +1620,7 @@ qla82xx_pci_info_str(struct scsi_qla_host *vha, char *str) | |||
1620 | char lwstr[6]; | 1620 | char lwstr[6]; |
1621 | uint16_t lnk; | 1621 | uint16_t lnk; |
1622 | 1622 | ||
1623 | pcie_reg = pci_find_capability(ha->pdev, PCI_CAP_ID_EXP); | 1623 | pcie_reg = pci_pcie_cap(ha->pdev); |
1624 | pci_read_config_word(ha->pdev, pcie_reg + PCI_EXP_LNKSTA, &lnk); | 1624 | pci_read_config_word(ha->pdev, pcie_reg + PCI_EXP_LNKSTA, &lnk); |
1625 | ha->link_width = (lnk >> 4) & 0x3f; | 1625 | ha->link_width = (lnk >> 4) & 0x3f; |
1626 | 1626 | ||
@@ -2528,7 +2528,7 @@ qla82xx_start_firmware(scsi_qla_host_t *vha) | |||
2528 | } | 2528 | } |
2529 | 2529 | ||
2530 | /* Negotiated Link width */ | 2530 | /* Negotiated Link width */ |
2531 | pcie_cap = pci_find_capability(ha->pdev, PCI_CAP_ID_EXP); | 2531 | pcie_cap = pci_pcie_cap(ha->pdev); |
2532 | pci_read_config_word(ha->pdev, pcie_cap + PCI_EXP_LNKSTA, &lnk); | 2532 | pci_read_config_word(ha->pdev, pcie_cap + PCI_EXP_LNKSTA, &lnk); |
2533 | ha->link_width = (lnk >> 4) & 0x3f; | 2533 | ha->link_width = (lnk >> 4) & 0x3f; |
2534 | 2534 | ||