|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH for-8.0 9/9] hw: Remove device_legacy_reset() |
Date: | Fri, 4 Nov 2022 18:43:34 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 |
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 <peter.maydell@linaro.org> --- 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é <philmd@linaro.org>
- if (klass->reset) { - klass->reset(dev); - } -}
[Prev in Thread] | Current Thread | [Next in Thread] |