diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-10-18 20:33:19 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-10-20 14:01:51 -0400 |
commit | 0927678f55c9a50c296f7e6dae85e87b8236e155 (patch) | |
tree | 480bec05ca6b31329eac8533243e1295749d3e46 /drivers/scsi | |
parent | 1543c90c39360df333a21bfbbdfe812ae23b8167 (diff) |
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 <czernecki@gmail.com>
Acked-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 2aed4721c0d0..21dd182ad512 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -1566,9 +1566,8 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1566 | goto probe_out; | 1566 | goto probe_out; |
1567 | } | 1567 | } |
1568 | 1568 | ||
1569 | if (pci_find_aer_capability(pdev)) | 1569 | /* This may fail but that's ok */ |
1570 | if (pci_enable_pcie_error_reporting(pdev)) | 1570 | pci_enable_pcie_error_reporting(pdev); |
1571 | goto probe_out; | ||
1572 | 1571 | ||
1573 | host = scsi_host_alloc(sht, sizeof(scsi_qla_host_t)); | 1572 | host = scsi_host_alloc(sht, sizeof(scsi_qla_host_t)); |
1574 | if (host == NULL) { | 1573 | if (host == NULL) { |