diff options
| author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2009-11-11 14:29:54 +0900 |
|---|---|---|
| committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-24 15:25:11 -0800 |
| commit | d7b7e60526d54da4c94afe5f137714cee7d05c41 (patch) | |
| tree | e8cdf8d2e60c274848e860501234ebb958ab0ae9 /drivers/pci/hotplug/ibmphp_hpc.c | |
| parent | 8c8def26bfaa704db67d515da3eb92cf26067548 (diff) | |
| download | olio-linux-3.10-d7b7e60526d54da4c94afe5f137714cee7d05c41.tar.xz olio-linux-3.10-d7b7e60526d54da4c94afe5f137714cee7d05c41.zip | |
PCI: introduce pci_pcie_cap()
Introduce pci_pcie_cap() API that returns saved PCIe capability offset
(currently it is saved in 'pcie_cap' field in the struct PCI dev).
Using pci_pcie_cap() instead of pci_find_capability() 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/hotplug/ibmphp_hpc.c')
0 files changed, 0 insertions, 0 deletions