PCI: Introduce pci_pcie_type(dev) to replace pci_dev->pcie_type
[deliverable/linux.git] / arch / powerpc / platforms / powernv / pci-ioda.c
index 9cda6a1ad0cf897c764f62f5f8affabb74a94bd5..b46e1dadc88202728f416a5f01f6974ef0fc7b73 100644 (file)
@@ -855,7 +855,7 @@ static void __devinit pnv_ioda_setup_PEs(struct pci_bus *bus)
                if (pe == NULL)
                        continue;
                /* Leaving the PCIe domain ... single PE# */
-               if (dev->pcie_type == PCI_EXP_TYPE_PCI_BRIDGE)
+               if (pci_pcie_type(dev) == PCI_EXP_TYPE_PCI_BRIDGE)
                        pnv_ioda_setup_bus_PE(dev, pe);
                else if (dev->subordinate)
                        pnv_ioda_setup_PEs(dev->subordinate);
This page took 0.024253 seconds and 5 git commands to generate.