PCI: Refactor pci_bus_assign_domain_nr() for CONFIG_PCI_DOMAINS_GENERIC
authorTomasz Nowicki <tn@semihalf.com>
Fri, 10 Jun 2016 19:55:14 +0000 (21:55 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 10 Jun 2016 23:28:12 +0000 (18:28 -0500)
commit9c7cb891ecfea3b88e4fa255afeec0da84ea6a86
treeb873f884250bc730ffb4dd7729beab4ae63b5a18
parent935c760ec8101413248da23b6df45f0a7a643c62
PCI: Refactor pci_bus_assign_domain_nr() for CONFIG_PCI_DOMAINS_GENERIC

Instead of assigning bus->domain_nr inside pci_bus_assign_domain_nr(),
return the domain and let the caller do the assignment.  Rename
pci_bus_assign_domain_nr() to pci_bus_find_domain_nr() to reflect this.

No functional change intended.

[bhelgaas: changelog]
Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/pci.c
drivers/pci/probe.c
include/linux/pci.h