aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 6d1d873a20e2..fb8cd3847d4b 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -482,12 +482,12 @@ qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str)
482 uint32_t pci_bus; 482 uint32_t pci_bus;
483 int pcie_reg; 483 int pcie_reg;
484 484
485 pcie_reg = pci_find_capability(ha->pdev, PCI_CAP_ID_EXP); 485 pcie_reg = pci_pcie_cap(ha->pdev);
486 if (pcie_reg) { 486 if (pcie_reg) {
487 char lwstr[6]; 487 char lwstr[6];
488 uint16_t pcie_lstat, lspeed, lwidth; 488 uint16_t pcie_lstat, lspeed, lwidth;
489 489
490 pcie_reg += 0x12; 490 pcie_reg += PCI_EXP_LNKCAP;
491 pci_read_config_word(ha->pdev, pcie_reg, &pcie_lstat); 491 pci_read_config_word(ha->pdev, pcie_reg, &pcie_lstat);
492 lspeed = pcie_lstat & (BIT_0 | BIT_1 | BIT_2 | BIT_3); 492 lspeed = pcie_lstat & (BIT_0 | BIT_1 | BIT_2 | BIT_3);
493 lwidth = (pcie_lstat & 493 lwidth = (pcie_lstat &