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 <afaer...@suse.de> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Anthony Liguori <anth...@codemonkey.ws> --- hw/qdev.c | 4 ++-- 1 Datei geändert, 2 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/hw/qdev.c b/hw/qdev.c index 788b4da..c17b6b2 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -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) -- 1.7.10.4