qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qdev: Rename unparenting callback
@ 2012-11-27  1:04 Andreas Färber
  0 siblings, 0 replies; only message in thread
From: Andreas Färber @ 2012-11-27  1:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Andreas Färber, Anthony Liguori

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(-)

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-27  1:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27  1:04 [Qemu-devel] [PATCH] qdev: Rename unparenting callback Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).