diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-15 15:36:42 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:02 +0100 |
commit | 8e7db8ab5179474b6277d549d62c1184681dc915 (patch) | |
tree | 75afe0c8db34b722add1501fe5fd6b8a49b1a050 /include | |
parent | d2fbec575f652dc35239c5b026f7ebabc548beb1 (diff) | |
download | qemu-8e7db8ab5179474b6277d549d62c1184681dc915.zip qemu-8e7db8ab5179474b6277d549d62c1184681dc915.tar.gz qemu-8e7db8ab5179474b6277d549d62c1184681dc915.tar.bz2 |
hw: Replace isa_get_irq() by isa_bus_get_irq() when ISABus is available
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230215161641.32663-4-philmd@linaro.org>
Diffstat (limited to 'include')
-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; } |