On 4/11/22 17:15, Peter Maydell wrote:
The device_legacy_reset() function is now not used anywhere, so we
can remove the implementation.

Signed-off-by: Peter Maydell <[email protected]>
---
  include/hw/qdev-core.h |  9 ---------
  hw/core/qdev.c         | 10 ----------
  2 files changed, 19 deletions(-)

-void device_legacy_reset(DeviceState *dev)
-{
-    DeviceClass *klass = DEVICE_GET_CLASS(dev);
-
-    trace_qdev_reset(dev, object_get_typename(OBJECT(dev)));

We can remove the "qdev_reset" entry in hw/core/trace-events.

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

-    if (klass->reset) {
-        klass->reset(dev);
-    }
-}

Reply via email to