summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-i440fx/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx/mainboard.c')
-rw-r--r--src/mainboard/emulation/qemu-i440fx/mainboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/mainboard.c b/src/mainboard/emulation/qemu-i440fx/mainboard.c
index 4886fe1830..0b3689731e 100644
--- a/src/mainboard/emulation/qemu-i440fx/mainboard.c
+++ b/src/mainboard/emulation/qemu-i440fx/mainboard.c
@@ -41,7 +41,7 @@ static void qemu_nb_init(struct device *dev)
/* setup IRQ routing */
for (i = 0; i < 32; i++)
- pci_assign_irqs(0, i, qemu_i440fx_irqs + (i % 4));
+ pci_assign_irqs(pcidev_on_root(i, 0), qemu_i440fx_irqs + (i % 4));
}
static struct device_operations nb_operations = {