From: Jan Kiszka <[email protected]> pci_get_bus_and_slot was removed in 4.17 while the more powerful alternative exists since 2.6 times.
Signed-off-by: Jan Kiszka <[email protected]> --- driver/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver/pci.c b/driver/pci.c index f82ed0f90..d62ad90e9 100644 --- a/driver/pci.c +++ b/driver/pci.c @@ -99,7 +99,8 @@ static void jailhouse_pci_remove_device(const struct jailhouse_pci_device *dev) { struct pci_dev *l_dev; - l_dev = pci_get_bus_and_slot(PCI_BUS_NUM(dev->bdf), dev->bdf & 0xff); + l_dev = pci_get_domain_bus_and_slot(dev->domain, PCI_BUS_NUM(dev->bdf), + dev->bdf & 0xff); if (l_dev) pci_stop_and_remove_bus_device_locked(l_dev); } -- 2.13.6 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
