PCIe ASPM: use pci_pcie_cap()
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 11 Nov 2009 05:33:30 +0000 (14:33 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 24 Nov 2009 23:25:14 +0000 (15:25 -0800)
commitdb9538a7495e33f3571c0e791c7678bc0c6ef50f
tree690c5977a83e5c7f0423870dd208784afcd4b159
parentdba90dfe48e2e00e79a15c95940730b6926ee176
PCIe ASPM: use pci_pcie_cap()

Use pci_pcie_cap() instead of pci_find_capability() to get PCIe capability
offset in PCIe ASPM driver. This avoids unnecessary search in PCI
configuration space.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aspm.c