diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-06-27 02:17:57 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-06-29 02:58:37 -0400 |
commit | 5516b540e98de6f7474a4e7149470ad6a0bbc54a (patch) | |
tree | 9eb57336d892eb8c0e76584285030868df82f626 /arch/powerpc/kernel/pci_64.c | |
parent | 6a506238b33efd93e60c1585d654b37e292183de (diff) |
[POWERPC] Use global_number in ppc32 pci_controller
Make the pci_controller struct use global_number for the PHB domain number
instead of index to match what ppc64 does and reuse its pci_domain_nr code.
Introduced a pci-common.c to handle shared code between ppc32 & ppc64.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/pci_64.c')
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 9fa2ecb8c1e4..57bdcd88f04a 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -636,22 +636,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
636 | return 0; | 636 | return 0; |
637 | } | 637 | } |
638 | 638 | ||
639 | /* | ||
640 | * Return the domain number for this bus. | ||
641 | */ | ||
642 | int pci_domain_nr(struct pci_bus *bus) | ||
643 | { | ||
644 | if (firmware_has_feature(FW_FEATURE_ISERIES)) | ||
645 | return 0; | ||
646 | else { | ||
647 | struct pci_controller *hose = pci_bus_to_host(bus); | ||
648 | |||
649 | return hose->global_number; | ||
650 | } | ||
651 | } | ||
652 | |||
653 | EXPORT_SYMBOL(pci_domain_nr); | ||
654 | |||
655 | /* Decide whether to display the domain number in /proc */ | 639 | /* Decide whether to display the domain number in /proc */ |
656 | int pci_proc_domain(struct pci_bus *bus) | 640 | int pci_proc_domain(struct pci_bus *bus) |
657 | { | 641 | { |