From c19d6a6ce59873f2326b14bb4af69048cceb9300 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Thu, 4 Jul 2019 21:39:28 +0300 Subject: device/pci: Replace use of dev_find_slot() for IRQs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I48c0de73338430282ce1a4442bbeb7c867dc174c Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/34079 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/arch/x86/pirq_routing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/x86/pirq_routing.c') diff --git a/src/arch/x86/pirq_routing.c b/src/arch/x86/pirq_routing.c index 5f80c9d56c..9d1f5910e9 100644 --- a/src/arch/x86/pirq_routing.c +++ b/src/arch/x86/pirq_routing.c @@ -177,7 +177,7 @@ static void pirq_route_irqs(unsigned long addr) } /* Bus, device, slots IRQs for {A,B,C,D}. */ - pci_assign_irqs(bus, devfn >> 3, irq_slot); + pci_assign_irqs(pcidev_path_on_bus(bus, devfn), irq_slot); } for (i = 0; i < CONFIG_MAX_PIRQ_LINKS; i++) -- cgit v1.2.3