aboutsummaryrefslogtreecommitdiff
path: root/hw/pl011.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pl011.c')
-rw-r--r--hw/pl011.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pl011.c b/hw/pl011.c
index 657f03bbe8..fb7ab7b53d 100644
--- a/hw/pl011.c
+++ b/hw/pl011.c
@@ -243,8 +243,8 @@ void pl011_init(uint32_t base, void *pic, int irq,
s->cr = 0x300;
s->flags = 0x90;
if (chr){
- qemu_chr_add_read_handler(chr, pl011_can_recieve, pl011_recieve, s);
- qemu_chr_add_event_handler(chr, pl011_event);
+ qemu_chr_add_handlers(chr, pl011_can_recieve, pl011_recieve,
+ pl011_event, s);
}
/* ??? Save/restore. */
}