From: Kenji Kaneshige Date: Thu, 5 Nov 2009 03:05:11 +0000 (+0900) Subject: PCI: cache PCIe capability offset X-Git-Tag: v2.6.33-rc1~321^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0efea0006335a2425b1a12a2ad35efad626fe353;p=pandora-kernel.git PCI: cache PCIe capability offset There are a lot of codes that searches PCI express capability offset in the PCI configuration space using pci_find_capability(). Caching it in the struct pci_dev will reduce unncecessary search. This patch adds an additional 'pcie_cap' fields into struct pci_dev, which is initialized at pci device scan time (in set_pcie_port_type()). Signed-off-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed