diff --git a/[refs] b/[refs] index 67ae14f34756..fbc2d4b890ac 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1518c17ab736303098843bd306a0fc4f8f5faa42 +refs/heads/master: 7eb776c42e75d17bd8107a1359068d8c742639d1 diff --git a/trunk/include/linux/pci.h b/trunk/include/linux/pci.h index 15f37f102dd3..2891c3d3e51a 100644 --- a/trunk/include/linux/pci.h +++ b/trunk/include/linux/pci.h @@ -1317,5 +1317,16 @@ static inline int pci_pcie_cap(struct pci_dev *dev) return dev->pcie_cap; } +/** + * pci_is_pcie - check if the PCI device is PCI Express capable + * @dev: PCI device + * + * Retrun true if the PCI device is PCI Express capable, false otherwise. + */ +static inline bool pci_is_pcie(struct pci_dev *dev) +{ + return !!pci_pcie_cap(dev); +} + #endif /* __KERNEL__ */ #endif /* LINUX_PCI_H */