[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-8.0 9/9] hw: Remove device_legacy_reset()
From: |
Peter Maydell |
Subject: |
[PATCH for-8.0 9/9] hw: Remove device_legacy_reset() |
Date: |
Fri, 4 Nov 2022 16:15:13 +0000 |
The device_legacy_reset() function is now not used anywhere, so we
can remove the implementation.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
include/hw/qdev-core.h | 9 ---------
hw/core/qdev.c | 10 ----------
2 files changed, 19 deletions(-)
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h
index c7eda169d78..35fddb19a64 100644
--- a/include/hw/qdev-core.h
+++ b/include/hw/qdev-core.h
@@ -776,15 +776,6 @@ BusState *sysbus_get_default(void);
char *qdev_get_fw_dev_path(DeviceState *dev);
char *qdev_get_own_fw_dev_path_from_handler(BusState *bus, DeviceState *dev);
-/**
- * device_legacy_reset:
- *
- * Reset a single device (by calling the reset method).
- * Note: This function is deprecated and will be removed when it becomes
unused.
- * Please use device_cold_reset() now.
- */
-void device_legacy_reset(DeviceState *dev);
-
void device_class_set_props(DeviceClass *dc, Property *props);
/**
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 3b0f04c5c6d..2743191efe7 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -857,16 +857,6 @@ void device_class_set_parent_unrealize(DeviceClass *dc,
dc->unrealize = dev_unrealize;
}
-void device_legacy_reset(DeviceState *dev)
-{
- DeviceClass *klass = DEVICE_GET_CLASS(dev);
-
- trace_qdev_reset(dev, object_get_typename(OBJECT(dev)));
- if (klass->reset) {
- klass->reset(dev);
- }
-}
-
Object *qdev_get_machine(void)
{
static Object *dev;
--
2.25.1
- [PATCH for-8.0 0/9] reset: Remove some deprecated APIs, Peter Maydell, 2022/11/04
- [PATCH for-8.0 2/9] hw/audio/intel-hda: don't reset codecs twice, Peter Maydell, 2022/11/04
- [PATCH for-8.0 4/9] hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset(), Peter Maydell, 2022/11/04
- [PATCH for-8.0 7/9] Replace use of qdev_reset_all() with device_cold_reset(), Peter Maydell, 2022/11/04
- [PATCH for-8.0 9/9] hw: Remove device_legacy_reset(),
Peter Maydell <=
- [PATCH for-8.0 3/9] hw/audio/intel-hda: Drop unnecessary prototype, Peter Maydell, 2022/11/04
- [PATCH for-8.0 6/9] hw/hyperv/vmbus: Use device_cold_reset() and bus_cold_reset(), Peter Maydell, 2022/11/04
- [PATCH for-8.0 5/9] pci: Use device_cold_reset() and bus_cold_reset(), Peter Maydell, 2022/11/04
- [PATCH for-8.0 8/9] qdev: Remove qdev_reset_all() and qbus_reset_all(), Peter Maydell, 2022/11/04
- [PATCH for-8.0 1/9] hw/s390x/s390-pci-inst.c: Use device_cold_reset() to reset PCI devices, Peter Maydell, 2022/11/04