]> git.baikalelectronics.ru Git - kernel.git/commit
alpha: deprecate pci_get_bus_and_slot()
authorSinan Kaya <okaya@codeaurora.org>
Mon, 27 Nov 2017 16:57:38 +0000 (11:57 -0500)
committerMatt Turner <mattst88@gmail.com>
Sun, 21 Jan 2018 01:01:04 +0000 (17:01 -0800)
commitcd25c7b365a69f3d03767106b1c3f7b62312f896
treea4966242069f80b7af3d1ebdcb9b6a9315c6fb89
parentce4567cc5f856bfa3baac8b6ea87fdda7f82e5a8
alpha: 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: Matt Turner <mattst88@gmail.com>
arch/alpha/kernel/pci.c
arch/alpha/kernel/sys_nautilus.c