aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorMyron Stowe <myron.stowe@redhat.com>2013-01-25 19:55:45 -0500
committerBjorn Helgaas <bhelgaas@google.com>2013-01-30 23:24:39 -0500
commit1c531d82ee1a220ae7132ba0eb31edaf186b56d1 (patch)
tree67736581bd5f36192ef9f2f27a1c28ec9b61e330 /include/linux/pci.h
parent7c9c003c68de51fb8712a01e904444ef40c742f5 (diff)
PCI: Use PCI Express Capability accessor
Use PCI Express Capability access functions to simplify device Capabilities Register usages. Signed-off-by: Myron Stowe <myron.stowe@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 78581e1d3f64..63b36281afce 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1707,7 +1707,7 @@ static inline u16 pcie_caps_reg(const struct pci_dev *dev)
1707 */ 1707 */
1708static inline int pci_pcie_type(const struct pci_dev *dev) 1708static inline int pci_pcie_type(const struct pci_dev *dev)
1709{ 1709{
1710 return (dev->pcie_flags_reg & PCI_EXP_FLAGS_TYPE) >> 4; 1710 return (pcie_caps_reg(dev) & PCI_EXP_FLAGS_TYPE) >> 4;
1711} 1711}
1712 1712
1713void pci_request_acs(void); 1713void pci_request_acs(void);