PCI: use pci_find_ext_capability everywhere

Remove some open coded (and buggy) versions of pci_find_ext_capability
in favor of the real routine in the PCI core.

Tested-by: Tomasz Czernecki <[email protected]>
Acked-by: Andrew Vasquez <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
This commit is contained in:
Jesse Barnes 2008-10-18 17:33:19 -07:00
commit 0927678f55
5 changed files with 20 additions and 65 deletions

View file

@ -1566,9 +1566,8 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
goto probe_out;
}
if (pci_find_aer_capability(pdev))
if (pci_enable_pcie_error_reporting(pdev))
goto probe_out;
/* This may fail but that's ok */
pci_enable_pcie_error_reporting(pdev);
host = scsi_host_alloc(sht, sizeof(scsi_qla_host_t));
if (host == NULL) {