From: Kenji Kaneshige Date: Wed, 11 Nov 2009 05:34:15 +0000 (+0900) Subject: PCI hotplug: use pci_pcie_cap() X-Git-Tag: upstream/snapshot3+hdmi~16382^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3ccc4091f0d63a3e0976c739c27037a5666060d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git PCI hotplug: use pci_pcie_cap() Use pci_pcie_cap() instead of pci_find_capability() to get PCIe capability offset in PCI hotplug core. This avoids unnecessary search in PCI configuration space. Signed-off-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/hotplug/pcihp_slot.c b/drivers/pci/hotplug/pcihp_slot.c index cc8ec3a..7f61afe 100644 --- a/drivers/pci/hotplug/pcihp_slot.c +++ b/drivers/pci/hotplug/pcihp_slot.c @@ -102,7 +102,7 @@ static void program_hpp_type2(struct pci_dev *dev, struct hpp_type2 *hpp) return; /* Find PCI Express capability */ - pos = pci_find_capability(dev, PCI_CAP_ID_EXP); + pos = pci_pcie_cap(dev); if (!pos) return;