mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
char: remove init callback
The CharDriverState.init() callback is no longer set since commit
a61ae7f88c
and thus unused. The only user, the malta FGPA display has
been converted to use an event "opened" callback instead.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022095318.17775-7-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9850b05d21
commit
b4948be93e
21 changed files with 34 additions and 48 deletions
|
@ -63,7 +63,7 @@ struct omap_uart_s *omap_uart_init(hwaddr base,
|
|||
s->irq = irq;
|
||||
s->serial = serial_mm_init(get_system_memory(), base, 2, irq,
|
||||
omap_clk_getrate(fclk)/16,
|
||||
chr ?: qemu_chr_new(label, "null", NULL),
|
||||
chr ?: qemu_chr_new(label, "null"),
|
||||
DEVICE_NATIVE_ENDIAN);
|
||||
return s;
|
||||
}
|
||||
|
@ -183,6 +183,6 @@ void omap_uart_attach(struct omap_uart_s *s, CharDriverState *chr)
|
|||
/* TODO: Should reuse or destroy current s->serial */
|
||||
s->serial = serial_mm_init(get_system_memory(), s->base, 2, s->irq,
|
||||
omap_clk_getrate(s->fclk) / 16,
|
||||
chr ?: qemu_chr_new("null", "null", NULL),
|
||||
chr ?: qemu_chr_new("null", "null"),
|
||||
DEVICE_NATIVE_ENDIAN);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue