ARM64: PCI: Add acpi_pci_bus_find_domain_nr()
authorTomasz Nowicki <tn@semihalf.com>
Fri, 10 Jun 2016 20:36:26 +0000 (15:36 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 10 Jun 2016 23:28:39 +0000 (18:28 -0500)
commit2ab51ddeca2fc32a7040d8560415be3366fa9ba7
tree4db4d6e2af8dcdbce19338ae78f3ce84806fbd7c
parent1a4f93f7112fd92383534f4c23d7b24fd4f8833c
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>
arch/arm64/kernel/pci.c
drivers/pci/pci.c
include/linux/pci.h