Patchwork qdev: Rename unparenting callback

login
register
mail settings
Submitter Andreas Färber
Date Nov. 27, 2012, 1:04 a.m.
Message ID <1353978272-12844-1-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/202059/
State New
Headers show

Comments

Andreas Färber - Nov. 27, 2012, 1:04 a.m.
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 <afaerber@suse.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Anthony Liguori <anthony@codemonkey.ws>
---
 hw/qdev.c |    4 ++--
 1 Datei geändert, 2 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

Patch

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)