aboutsummaryrefslogtreecommitdiff
path: root/hw/core/qdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/core/qdev.c')
-rw-r--r--hw/core/qdev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 6479194498..9f18520219 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -286,6 +286,11 @@ int qdev_simple_unplug_cb(DeviceState *dev)
return 0;
}
+void qdev_simple_device_unplug_cb(HotplugHandler *hotplug_dev,
+ DeviceState *dev, Error **errp)
+{
+ qdev_simple_unplug_cb(dev);
+}
/* Like qdev_init(), but terminate program via error_report() instead of
returning an error value. This is okay during machine creation.