From: Yijing Wang Date: Thu, 5 Sep 2013 07:55:28 +0000 (+0800) Subject: x86/pci: Use cached pci_dev->pcie_cap to simplify code X-Git-Tag: v3.13-rc1~95^2~13^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8a26fe637fc740ebb927ce25dcf036363a998df;p=pandora-kernel.git 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 Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed