summary refs log tree commit diff stats
path: root/hw/core/qdev.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-12-16 15:55:28 +0000
committerPeter Maydell <peter.maydell@linaro.org>2022-12-16 15:55:32 +0000
commitc3141e21e3904408a527e9bbd08b8622f4ef8072 (patch)
tree388373599d70088708674b2055c39ec1ea68e4d4 /hw/core/qdev.c
parente5e887c73b2201d80aff6780a8908ec0e86d7407 (diff)
downloadfocaccia-qemu-c3141e21e3904408a527e9bbd08b8622f4ef8072.tar.gz
focaccia-qemu-c3141e21e3904408a527e9bbd08b8622f4ef8072.zip
hw: Remove device_legacy_reset()
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>
Diffstat (limited to 'hw/core/qdev.c')
-rw-r--r--hw/core/qdev.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index c5ea0adc71..d759c4602c 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -868,16 +868,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;