PCIe PME: use pci_pcie_cap()
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Mon, 22 Feb 2010 05:13:39 +0000 (14:13 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:21:21 +0000 (16:21 -0800)
commitb16694f70c40ea8d539cdc93a422039771e85870
tree2ac80b596bff438d84c13224076aa474a3c8053c
parent6cbf82148ff286ec22a55be6836c3a5bffc489c1
PCIe PME: use pci_pcie_cap()

Use pci_pcie_cap() instead of pci_find_capability() to get PCIe
capability offset. This reduces redundant 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/pme/pcie_pme.c