aboutsummaryrefslogtreecommitdiff
path: root/hw/hppa/dino.c
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-05-04 10:25:28 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-05-08 18:52:36 +0100
commit36f9bbdb1717eeb9b10cbfa3135c942c43d13d25 (patch)
treedee22ef0b6c2c9cdcb6c80fb6a0e397a50a3894b /hw/hppa/dino.c
parenta4b74c1924b79b91ca6aeb20cdd39156b5c7b4f7 (diff)
dino: remove unused dino_set_timer_irq() IRQ handler
According to the comments in dino.c the timer IRQ is unused, so remove the empty dino_set_timer_irq() handler function and simply pass NULL to mc146818_rtc_init() in machine.c instead. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-19-mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/hppa/dino.c')
-rw-r--r--hw/hppa/dino.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c
index 80ffe27188..d8baf139d6 100644
--- a/hw/hppa/dino.c
+++ b/hw/hppa/dino.c
@@ -399,13 +399,7 @@ static int dino_pci_map_irq(PCIDevice *d, int irq_num)
return slot & 0x03;
}
-static void dino_set_timer_irq(void *opaque, int irq, int level)
-{
- /* ??? Not connected. */
-}
-
-DinoState *dino_init(MemoryRegion *addr_space,
- qemu_irq *p_rtc_irq)
+DinoState *dino_init(MemoryRegion *addr_space)
{
DeviceState *dev;
DinoState *s;
@@ -416,8 +410,6 @@ DinoState *dino_init(MemoryRegion *addr_space,
s = DINO_PCI_HOST_BRIDGE(dev);
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
- *p_rtc_irq = qemu_allocate_irq(dino_set_timer_irq, s, 0);
-
return s;
}