mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
serial: Remove ioregister parameter from serial_mm_init
All callers passed 1. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
fb50cfe44d
commit
2ff0c7c3c2
14 changed files with 25 additions and 28 deletions
|
@ -61,7 +61,7 @@ struct omap_uart_s *omap_uart_init(target_phys_addr_t base,
|
|||
s->fclk = fclk;
|
||||
s->irq = irq;
|
||||
s->serial = serial_mm_init(base, 2, irq, omap_clk_getrate(fclk)/16,
|
||||
chr ?: qemu_chr_new(label, "null", NULL), 1,
|
||||
chr ?: qemu_chr_new(label, "null", NULL),
|
||||
DEVICE_NATIVE_ENDIAN);
|
||||
return s;
|
||||
}
|
||||
|
@ -178,6 +178,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(s->base, 2, s->irq,
|
||||
omap_clk_getrate(s->fclk) / 16,
|
||||
chr ?: qemu_chr_new("null", "null", NULL), 1,
|
||||
chr ?: qemu_chr_new("null", "null", NULL),
|
||||
DEVICE_NATIVE_ENDIAN);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue