qdev: Rename unparenting callback
PATCH 1/1 qdev: Rename unparenting callback
In commit 667d22d1ae59da46b4c1fbd094ca61145f19b8c3 (qdev: move bus removal to object_unparent) a certain reviewer missed that a private qdev_remove_from_bus() function was introduced in midst new-style device_*() functions... Fix this.
Signed-off-by Andreas Färber <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Anthony Liguori <[email protected]>
--- hw/qdev.c | 4 ++--
1 Datei geändert, 2 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)
hw/qdev.c +2 -2
@@ -709,7 +709,7 @@ static void device_class_base_init(ObjectClass *class, void *data) klass->props =NULL ; } -static void qdev_remove_from_bus (Object *obj) +static void device_remove_from_bus (Object *obj) {DeviceState *dev =DEVICE (obj);
@@ -718,7 +718,7 @@ static void qdev_remove_from_bus(Object *obj)static void device_class_init (ObjectClass *class,void *data) { - class->unparent = qdev_remove_from_bus; + class->unparent = device_remove_from_bus; }void device_reset (DeviceState *dev)
Signature · 1 line
1.7.10.4