From: "Andreas Färber" <afaerber@suse.de>
To: qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Andreas Färber" <afaerber@suse.de>,
"Anthony Liguori" <anthony@codemonkey.ws>
Subject: [Qemu-devel] [PATCH] qdev: Rename unparenting callback
Date: Tue, 27 Nov 2012 02:04:32 +0100 [thread overview]
Message-ID: <1353978272-12844-1-git-send-email-afaerber@suse.de> (raw)
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
reply other threads:[~2012-11-27 1:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1353978272-12844-1-git-send-email-afaerber@suse.de \
--to=afaerber@suse.de \
--cc=anthony@codemonkey.ws \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).