diff options
Diffstat (limited to 'include/hw/timer/i8254.h')
-rw-r--r-- | include/hw/timer/i8254.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/timer/i8254.h b/include/hw/timer/i8254.h index 3e569f4..8402caa 100644 --- a/include/hw/timer/i8254.h +++ b/include/hw/timer/i8254.h @@ -56,7 +56,8 @@ static inline ISADevice *i8254_pit_init(ISABus *bus, int base, int isa_irq, qdev_prop_set_uint32(dev, "iobase", base); isa_realize_and_unref(d, bus, &error_fatal); qdev_connect_gpio_out(dev, 0, - isa_irq >= 0 ? isa_get_irq(d, isa_irq) : alt_irq); + isa_irq >= 0 ? isa_bus_get_irq(bus, isa_irq) + : alt_irq); return d; } |