aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev/fsl_pci.c')
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 2eefcde5b0da..faafae601a72 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -142,6 +142,20 @@ int __init fsl_pcie_check_link(struct pci_controller *hose)
142 return 0; 142 return 0;
143} 143}
144 144
145void fsl_pcibios_fixup_bus(struct pci_bus *bus)
146{
147 struct pci_controller *hose = (struct pci_controller *) bus->sysdata;
148 int i;
149
150 /* deal with bogus pci_bus when we don't have anything connected on PCIe */
151 if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) {
152 if (bus->parent) {
153 for (i = 0; i < 4; ++i)
154 bus->resource[i] = bus->parent->resource[i];
155 }
156 }
157}
158
145int __init fsl_add_bridge(struct device_node *dev, int is_primary) 159int __init fsl_add_bridge(struct device_node *dev, int is_primary)
146{ 160{
147 int len; 161 int len;