aboutsummaryrefslogtreecommitdiff
path: root/hw/char/omap_uart.c
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2023-05-23 21:56:07 +0200
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2023-06-05 07:43:23 +0100
commit14e066a7c440ce4c7c89ec119ba3b45b33f808d8 (patch)
tree3756c9b9fa254ac1a7d212f4d0539d8939d2dd45 /hw/char/omap_uart.c
parent02520772ae1f5e336dd12765d7f9166e859642a9 (diff)
hw/arm/omap: Remove unused omap_uart_attach()
The function is unused since commit bdad3654d3c55f478e538037d9eccd204e5fc8ee ('hw/arm/nseries: Remove invalid/unnecessary n8x0_uart_setup()'). Signed-off-by: Bernhard Beschow <shentey@gmail.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230523195608.125820-3-shentey@gmail.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/char/omap_uart.c')
-rw-r--r--hw/char/omap_uart.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/hw/char/omap_uart.c b/hw/char/omap_uart.c
index 1c890b9201..6848bddb4e 100644
--- a/hw/char/omap_uart.c
+++ b/hw/char/omap_uart.c
@@ -175,12 +175,3 @@ struct omap_uart_s *omap2_uart_init(MemoryRegion *sysmem,
return s;
}
-
-void omap_uart_attach(struct omap_uart_s *s, Chardev *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),
- DEVICE_NATIVE_ENDIAN);
-}