|
@@ -1590,7 +1590,7 @@ qla4_8xxx_start_firmware(struct scsi_qla_host *ha, uint32_t image_start)
|
|
|
}
|
|
|
|
|
|
/* Negotiated Link width */
|
|
|
- pcie_cap = pci_find_capability(ha->pdev, PCI_CAP_ID_EXP);
|
|
|
+ pcie_cap = pci_pcie_cap(ha->pdev);
|
|
|
pci_read_config_word(ha->pdev, pcie_cap + PCI_EXP_LNKSTA, &lnk);
|
|
|
ha->link_width = (lnk >> 4) & 0x3f;
|
|
|
|