PCI: use pci_is_pcie() in pci core
Change for PCI core to use pci_is_pcie() instead of checking pci_dev->is_pcie. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:

committed by
Jesse Barnes

parent
7eb776c42e
commit
5f4d91a122
@@ -329,7 +329,7 @@ found:
|
||||
for (bus = dev->bus; bus; bus = bus->parent) {
|
||||
struct pci_dev *bridge = bus->self;
|
||||
|
||||
if (!bridge || !bridge->is_pcie ||
|
||||
if (!bridge || !pci_is_pcie(bridge) ||
|
||||
bridge->pcie_type == PCI_EXP_TYPE_PCI_BRIDGE)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user