diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-09-05 11:55:28 +0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-09-24 03:30:03 +0400 |
commit | f8a26fe637fc740ebb927ce25dcf036363a998df (patch) | |
tree | a3a84881bb5e83d303e3c53138adacde890a5ff7 /drivers/scsi/bfa/bfad.c | |
parent | fdfe151127a75de037c7e32cef110ae9c7c5e3c8 (diff) | |
download | linux-f8a26fe637fc740ebb927ce25dcf036363a998df.tar.xz |
x86/pci: Use cached pci_dev->pcie_cap to simplify code
The PCI core caches the PCIe Capability offset in pci_dev->pcie_cap, so
use that instead of pci_find_capability(). Use pci_bus_set_ops() when
replacing the device pci_ops. And use #defines instead of numeric
constants.
[bhelgaas: changelog, also use PCI_EXP_LNKCTL_ASPMC]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/scsi/bfa/bfad.c')
0 files changed, 0 insertions, 0 deletions