aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/pci-common.c16
-rw-r--r--arch/powerpc/kernel/pci_64.c8
2 files changed, 16 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 9979c43cc8c7..68102ce7e438 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -639,3 +639,19 @@ void __devinit pci_process_bridge_OF_ranges(struct pci_controller *hose,
639 hose->mem_resources[memno-1] = tmp; 639 hose->mem_resources[memno-1] = tmp;
640 } 640 }
641} 641}
642
643/* Decide whether to display the domain number in /proc */
644int pci_proc_domain(struct pci_bus *bus)
645{
646 struct pci_controller *hose = pci_bus_to_host(bus);
647#ifdef CONFIG_PPC64
648 return hose->buid != 0;
649#else
650 if (!(ppc_pci_flags & PPC_PCI_ENABLE_PROC_DOMAINS))
651 return 0;
652 if (ppc_pci_flags & PPC_PCI_COMPAT_DOMAIN_0)
653 return hose->global_number != 0;
654 return 1;
655#endif
656}
657
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 3e7cf7af3bf3..e0f3731c3a1c 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -586,14 +586,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
586 return 0; 586 return 0;
587} 587}
588 588
589/* Decide whether to display the domain number in /proc */
590int pci_proc_domain(struct pci_bus *bus)
591{
592 struct pci_controller *hose = pci_bus_to_host(bus);
593 return hose->buid != 0;
594}
595
596
597#ifdef CONFIG_HOTPLUG 589#ifdef CONFIG_HOTPLUG
598 590
599int pcibios_unmap_io_space(struct pci_bus *bus) 591int pcibios_unmap_io_space(struct pci_bus *bus)