diff mbox series

[PULL,09/16] hw/misc/applesmc: Do not call DeviceReset from DeviceRealize

Message ID 20240410091315.57241-10-philmd@linaro.org (mailing list archive)
State New
Headers show
Series [PULL,01/16] hw/virtio: Introduce virtio_bh_new_guarded() helper | expand

Commit Message

Philippe Mathieu-Daudé April 10, 2024, 9:13 a.m. UTC
QDev core layer always call DeviceReset() after DeviceRealize(),
no need to do it manually. Remove the extra call.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20240408095217.57239-2-philmd@linaro.org>
---
 hw/misc/applesmc.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/misc/applesmc.c b/hw/misc/applesmc.c
index 72300d0cbc..8e65816da6 100644
--- a/hw/misc/applesmc.c
+++ b/hw/misc/applesmc.c
@@ -342,7 +342,6 @@  static void applesmc_isa_realize(DeviceState *dev, Error **errp)
     }
 
     QLIST_INIT(&s->data_def);
-    qdev_applesmc_isa_reset(dev);
 }
 
 static Property applesmc_isa_properties[] = {