diff options
author | Sinan Kaya <okaya@codeaurora.org> | 2017-11-27 17:57:38 +0100 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2018-01-21 02:01:04 +0100 |
commit | 797cfc4f714a13e33729859fb671cfd8b4131abc (patch) | |
tree | a4966242069f80b7af3d1ebdcb9b6a9315c6fb89 /arch/alpha/kernel/pci.c | |
parent | alpha: Fix mixed up args in EXC macro in futex operations (diff) | |
download | linux-797cfc4f714a13e33729859fb671cfd8b4131abc.tar.xz linux-797cfc4f714a13e33729859fb671cfd8b4131abc.zip |
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>
Diffstat (limited to 'arch/alpha/kernel/pci.c')
-rw-r--r-- | arch/alpha/kernel/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index 87da00579946..2e86ebb680ae 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c @@ -425,7 +425,7 @@ sys_pciconfig_iobase(long which, unsigned long bus, unsigned long dfn) if (bus == 0 && dfn == 0) { hose = pci_isa_hose; } else { - dev = pci_get_bus_and_slot(bus, dfn); + dev = pci_get_domain_bus_and_slot(0, bus, dfn); if (!dev) return -ENODEV; hose = dev->sysdata; |