diff options
| author | Tomasz Nowicki <tn@semihalf.com> | 2016-06-10 15:36:26 -0500 | 
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-06-10 18:28:39 -0500 | 
| commit | 2ab51ddeca2fc32a7040d8560415be3366fa9ba7 (patch) | |
| tree | 4db4d6e2af8dcdbce19338ae78f3ce84806fbd7c /arch/arm64/kernel/pci.c | |
| parent | 1a4f93f7112fd92383534f4c23d7b24fd4f8833c (diff) | |
ARM64: PCI: Add acpi_pci_bus_find_domain_nr()
Extend pci_bus_find_domain_nr() so it can find the domain from either:
  - ACPI, via the new acpi_pci_bus_find_domain_nr() interface, or
  - DT, via of_pci_bus_find_domain_nr()
Note that this is only used for CONFIG_PCI_DOMAINS_GENERIC=y, so it does
not affect x86 or ia64.
[bhelgaas: changelog]
Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/arm64/kernel/pci.c')
| -rw-r--r-- | arch/arm64/kernel/pci.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index 3c4e308b40a0..d5d3d26834cf 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -17,6 +17,7 @@  #include <linux/mm.h>  #include <linux/of_pci.h>  #include <linux/of_platform.h> +#include <linux/pci.h>  #include <linux/slab.h>  /* @@ -85,6 +86,12 @@ EXPORT_SYMBOL(pcibus_to_node);  #endif  #ifdef CONFIG_ACPI + +int acpi_pci_bus_find_domain_nr(struct pci_bus *bus) +{ +	return 0; +} +  /* Root bridge scanning */  struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)  { | 
