diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-22 01:03:21 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-22 01:03:21 -0400 |
commit | f7abbc190b0edec34627d5348ba1d5fa5577da77 (patch) | |
tree | dc6a97aaef1cf9174af7e09329db85be0af13c16 /arch/ppc64/kernel/rtas_pci.c | |
parent | a5b518ed314bfd25ea5e433ce09f8b27080023db (diff) |
ppc64: Add a `primary' argument to pci_process_bridge_OF_ranges
... for consistency with ppc32 and to make the powermac merge easier.
Also make it use just a single resource in the host bridge for multiple
consecutive elements of the ranges property.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/rtas_pci.c')
-rw-r--r-- | arch/ppc64/kernel/rtas_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/rtas_pci.c b/arch/ppc64/kernel/rtas_pci.c index 20361bcd8cfb..3ad15c90fbbd 100644 --- a/arch/ppc64/kernel/rtas_pci.c +++ b/arch/ppc64/kernel/rtas_pci.c | |||
@@ -400,7 +400,7 @@ unsigned long __init find_and_init_phbs(void) | |||
400 | if (!phb) | 400 | if (!phb) |
401 | continue; | 401 | continue; |
402 | 402 | ||
403 | pci_process_bridge_OF_ranges(phb, node); | 403 | pci_process_bridge_OF_ranges(phb, node, 0); |
404 | pci_setup_phb_io(phb, index == 0); | 404 | pci_setup_phb_io(phb, index == 0); |
405 | #ifdef CONFIG_PPC_PSERIES | 405 | #ifdef CONFIG_PPC_PSERIES |
406 | if (ppc64_interrupt_controller == IC_OPEN_PIC && pSeries_mpic) { | 406 | if (ppc64_interrupt_controller == IC_OPEN_PIC && pSeries_mpic) { |
@@ -450,7 +450,7 @@ struct pci_controller * __devinit init_phb_dynamic(struct device_node *dn) | |||
450 | if (!phb) | 450 | if (!phb) |
451 | return NULL; | 451 | return NULL; |
452 | 452 | ||
453 | pci_process_bridge_OF_ranges(phb, dn); | 453 | pci_process_bridge_OF_ranges(phb, dn, primary); |
454 | 454 | ||
455 | pci_setup_phb_io_dynamic(phb, primary); | 455 | pci_setup_phb_io_dynamic(phb, primary); |
456 | of_node_put(root); | 456 | of_node_put(root); |