|
@@ -685,7 +685,7 @@ qla24xx_pci_config(scsi_qla_host_t *vha)
|
|
|
pcix_set_mmrbc(ha->pdev, 2048);
|
|
|
|
|
|
/* PCIe -- adjust Maximum Read Request Size (2048). */
|
|
|
- if (pci_find_capability(ha->pdev, PCI_CAP_ID_EXP))
|
|
|
+ if (pci_is_pcie(ha->pdev))
|
|
|
pcie_set_readrq(ha->pdev, 2048);
|
|
|
|
|
|
pci_disable_rom(ha->pdev);
|
|
@@ -721,7 +721,7 @@ qla25xx_pci_config(scsi_qla_host_t *vha)
|
|
|
pci_write_config_word(ha->pdev, PCI_COMMAND, w);
|
|
|
|
|
|
/* PCIe -- adjust Maximum Read Request Size (2048). */
|
|
|
- if (pci_find_capability(ha->pdev, PCI_CAP_ID_EXP))
|
|
|
+ if (pci_is_pcie(ha->pdev))
|
|
|
pcie_set_readrq(ha->pdev, 2048);
|
|
|
|
|
|
pci_disable_rom(ha->pdev);
|