aboutsummaryrefslogtreecommitdiff
path: root/hw/sh7750.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sh7750.c')
-rw-r--r--hw/sh7750.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/hw/sh7750.c b/hw/sh7750.c
index 21f9bc0aee..164ce71623 100644
--- a/hw/sh7750.c
+++ b/hw/sh7750.c
@@ -299,9 +299,8 @@ static void init_serial1(SH7750State * s, int serial_nb)
}
s->serial1 = chr;
- qemu_chr_add_read_handler(chr, serial1_can_receive,
- serial1_receive, s);
- qemu_chr_add_event_handler(chr, serial1_event);
+ qemu_chr_add_handlers(chr, serial1_can_receive,
+ serial1_receive, serial1_event, s);
}
/**********************************************************************
@@ -415,9 +414,8 @@ static void init_serial2(SH7750State * s, int serial_nb)
}
s->serial2 = chr;
- qemu_chr_add_read_handler(chr, serial2_can_receive,
- serial2_receive, s);
- qemu_chr_add_event_handler(chr, serial2_event);
+ qemu_chr_add_handlers(chr, serial2_can_receive,
+ serial2_receive, serial1_event, s);
}
static void init_serial_ports(SH7750State * s)