diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-19 12:49:29 +0200 |
---|---|---|
committer | Thomas Huth <huth@tuxfamily.org> | 2023-11-01 07:31:05 +0100 |
commit | f213ccc96831191ac492bd36b9935effa01f95fd (patch) | |
tree | 7740c4bd7801e970de5c546b5a2f153fe485e787 /hw/m68k/mcf5208.c | |
parent | 7f090ed7103df119fa33651ae15958ddb5863f56 (diff) | |
download | qemu-f213ccc96831191ac492bd36b9935effa01f95fd.zip qemu-f213ccc96831191ac492bd36b9935effa01f95fd.tar.gz qemu-f213ccc96831191ac492bd36b9935effa01f95fd.tar.bz2 |
hw/char/mcf_uart: Have mcf_uart_create() return DeviceState
There is no point in having mcf_uart_init() demote the DeviceState
pointer and return a void one. Directly return the real typedef.
mcf_uart_init() do both init + realize: rename as mcf_uart_create().
Similarly, mcf_uart_mm_init() do init / realize / mmap: rename as
mcf_uart_create_mmap().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231019104929.16517-1-philmd@linaro.org>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
Diffstat (limited to 'hw/m68k/mcf5208.c')
-rw-r--r-- | hw/m68k/mcf5208.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c index be1033f..d22d853 100644 --- a/hw/m68k/mcf5208.c +++ b/hw/m68k/mcf5208.c @@ -261,9 +261,9 @@ static void mcf5208evb_init(MachineState *machine) /* Internal peripherals. */ pic = mcf_intc_init(address_space_mem, 0xfc048000, cpu); - mcf_uart_mm_init(0xfc060000, pic[26], serial_hd(0)); - mcf_uart_mm_init(0xfc064000, pic[27], serial_hd(1)); - mcf_uart_mm_init(0xfc068000, pic[28], serial_hd(2)); + mcf_uart_create_mmap(0xfc060000, pic[26], serial_hd(0)); + mcf_uart_create_mmap(0xfc064000, pic[27], serial_hd(1)); + mcf_uart_create_mmap(0xfc068000, pic[28], serial_hd(2)); mcf5208_sys_init(address_space_mem, pic); |