ata: Deprecate pci_get_bus_and_slot()
commit78a6b8d870634165b62c5fb781d833357a832a30
authorSinan Kaya <okaya@codeaurora.org>
Tue, 19 Dec 2017 05:37:40 +0000 (19 00:37 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Thu, 11 Jan 2018 23:23:23 +0000 (11 17:23 -0600)
tree109413a63b84ba98b04911c3ab40837d21d1652a
parentd4b315038be170d441ae7d7051417ac4fd56849f
ata: 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.

Getting ready to remove pci_get_bus_and_slot() function in favor of
pci_get_domain_bus_and_slot().

Use pci_get_domain_bus_and_slot() and extract the actual domain number
from the pdev passed in.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_ali.c