[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/23] hw/char: Remove unused serial_set_frequency
From: |
Michael Tokarev |
Subject: |
[PULL 09/23] hw/char: Remove unused serial_set_frequency |
Date: |
Fri, 4 Oct 2024 19:03:17 +0300 |
From: "Dr. David Alan Gilbert" <dave@treblig.org>
serial_set_frequnecy has been unused since it was added in 2009:
038eaf82c8 ("serial: Add interface to set reference oscillator frequency")
It looks like the 'baudbase' is now a property anyway so the wrapper
isn't needed.
Remove it.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
hw/char/serial.c | 7 -------
include/hw/char/serial.h | 2 --
2 files changed, 9 deletions(-)
diff --git a/hw/char/serial.c b/hw/char/serial.c
index d8b2db5082..6c5c4a23c7 100644
--- a/hw/char/serial.c
+++ b/hw/char/serial.c
@@ -951,13 +951,6 @@ static void serial_unrealize(DeviceState *dev)
qemu_unregister_reset(serial_reset, s);
}
-/* Change the main reference oscillator frequency. */
-void serial_set_frequency(SerialState *s, uint32_t frequency)
-{
- s->baudbase = frequency;
- serial_update_parameters(s);
-}
-
const MemoryRegionOps serial_io_ops = {
.read = serial_ioport_read,
.write = serial_ioport_write,
diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h
index 6e14099ee7..40aad21df3 100644
--- a/include/hw/char/serial.h
+++ b/include/hw/char/serial.h
@@ -93,8 +93,6 @@ struct SerialMM {
extern const VMStateDescription vmstate_serial;
extern const MemoryRegionOps serial_io_ops;
-void serial_set_frequency(SerialState *s, uint32_t frequency);
-
#define TYPE_SERIAL "serial"
OBJECT_DECLARE_SIMPLE_TYPE(SerialState, SERIAL)
--
2.39.5
- [PULL 02/23] qemu-keymap: Release local allocation references, (continued)
- [PULL 02/23] qemu-keymap: Release local allocation references, Michael Tokarev, 2024/10/04
- [PULL 05/23] hw/xen: Remove deadcode, Michael Tokarev, 2024/10/04
- [PULL 07/23] net: Remove deadcode, Michael Tokarev, 2024/10/04
- [PULL 06/23] q35: Remove unused mch_mcfg_base, Michael Tokarev, 2024/10/04
- [PULL 08/23] hw/net/net_rx_pkt: Remove deadcode, Michael Tokarev, 2024/10/04
- [PULL 03/23] vnc: fix crash when no console attached, Michael Tokarev, 2024/10/04
- [PULL 10/23] linux-user: Remove unused handle_vm86_fault, Michael Tokarev, 2024/10/04
- [PULL 04/23] MAINTAINERS: remove gensyscalls.sh from the linux-user section, Michael Tokarev, 2024/10/04
- [PULL 09/23] hw/char: Remove unused serial_set_frequency,
Michael Tokarev <=
- [PULL 11/23] hw: Remove unused fw_cfg_init_io, Michael Tokarev, 2024/10/04
- [PULL 12/23] ui/cursor: remove cursor_get_mono_image, Michael Tokarev, 2024/10/04
- [PULL 13/23] vhost: Remove unused vhost_dev_{load|save}_inflight, Michael Tokarev, 2024/10/04
- [PULL 14/23] remote: Remove unused remote_iohub_finalize, Michael Tokarev, 2024/10/04
- [PULL 15/23] replay: Remove unused replay_disable_events, Michael Tokarev, 2024/10/04
- [PULL 16/23] hw/pci: Remove unused pcie_chassis_find_slot, Michael Tokarev, 2024/10/04
- [PULL 17/23] hw/net/rocker: Remove unused rocker_fp_ports, Michael Tokarev, 2024/10/04
- [PULL 18/23] block-backend: Remove deadcode, Michael Tokarev, 2024/10/04
- [PULL 19/23] tests/tcg/plugins: Remove remainder of the cris target, Michael Tokarev, 2024/10/04
- [PULL 20/23] hw/mips: Build fw_cfg.c once, Michael Tokarev, 2024/10/04