summary refs log tree commit diff stats
path: root/include/hw/timer
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-15 15:36:42 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-27 22:29:02 +0100
commit8e7db8ab5179474b6277d549d62c1184681dc915 (patch)
tree75afe0c8db34b722add1501fe5fd6b8a49b1a050 /include/hw/timer
parentd2fbec575f652dc35239c5b026f7ebabc548beb1 (diff)
downloadfocaccia-qemu-8e7db8ab5179474b6277d549d62c1184681dc915.tar.gz
focaccia-qemu-8e7db8ab5179474b6277d549d62c1184681dc915.zip
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/hw/timer')
-rw-r--r--include/hw/timer/i8254.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/timer/i8254.h b/include/hw/timer/i8254.h
index 3e569f42b6..8402caad30 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;
 }