aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2009-11-11 14:34:15 +0900
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-24 15:25:14 -0800
commitd3ccc4091f0d63a3e0976c739c27037a5666060d (patch)
tree047170187ca169a0090728ce92c5c62abbb66b3a /drivers/pci
parentdb9538a7495e33f3571c0e791c7678bc0c6ef50f (diff)
downloadkernel_samsung_crespo-d3ccc4091f0d63a3e0976c739c27037a5666060d.zip
kernel_samsung_crespo-d3ccc4091f0d63a3e0976c739c27037a5666060d.tar.gz
kernel_samsung_crespo-d3ccc4091f0d63a3e0976c739c27037a5666060d.tar.bz2
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 <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/pcihp_slot.c2
1 files changed, 1 insertions, 1 deletions
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;