aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/rtas_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/rtas_pci.c')
-rw-r--r--arch/powerpc/kernel/rtas_pci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/rtas_pci.c b/arch/powerpc/kernel/rtas_pci.c
index 2576e12d7255..03cacc25a0ae 100644
--- a/arch/powerpc/kernel/rtas_pci.c
+++ b/arch/powerpc/kernel/rtas_pci.c
@@ -257,8 +257,10 @@ static int phb_set_bus_ranges(struct device_node *dev,
257 return 0; 257 return 0;
258} 258}
259 259
260int __devinit setup_phb(struct device_node *dev, struct pci_controller *phb) 260int __devinit rtas_setup_phb(struct pci_controller *phb)
261{ 261{
262 struct device_node *dev = phb->arch_data;
263
262 if (is_python(dev)) 264 if (is_python(dev))
263 python_countermeasures(dev); 265 python_countermeasures(dev);
264 266
@@ -290,7 +292,7 @@ unsigned long __init find_and_init_phbs(void)
290 phb = pcibios_alloc_controller(node); 292 phb = pcibios_alloc_controller(node);
291 if (!phb) 293 if (!phb)
292 continue; 294 continue;
293 setup_phb(node, phb); 295 rtas_setup_phb(phb);
294 pci_process_bridge_OF_ranges(phb, node, 0); 296 pci_process_bridge_OF_ranges(phb, node, 0);
295 pci_setup_phb_io(phb, index == 0); 297 pci_setup_phb_io(phb, index == 0);
296 index++; 298 index++;
@@ -362,7 +364,6 @@ int pcibios_remove_root_bus(struct pci_controller *phb)
362 } 364 }
363 } 365 }
364 366
365 list_del(&phb->list_node);
366 pcibios_free_controller(phb); 367 pcibios_free_controller(phb);
367 368
368 return 0; 369 return 0;