alpha/PCI: Deprecate pci_get_bus_and_slot()
authorSinan Kaya <okaya@codeaurora.org>
Tue, 19 Dec 2017 05:37:37 +0000 (00:37 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Thu, 11 Jan 2018 23:20:30 +0000 (17:20 -0600)
commitc98e54c8733fbeef7be73e9ed98241757ec9b151
tree6c9720159208b04b1bf6e301030ed30383975df3
parent1291a0d5049dbc06baaaf66a9ff3f53db493b19b
alpha/PCI: Deprecate pci_get_bus_and_slot()

pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as
where a PCI device is present. This restricts the device drivers to be
reused for other domain numbers.

Use pci_get_domain_bus_and_slot() with a domain number of 0 where we can't
extract the domain number. Other places, use the actual domain number from
the device.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
arch/alpha/kernel/pci.c
arch/alpha/kernel/sys_nautilus.c