summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-03-22 11:38:13 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-04-18 23:46:48 +0200
commitcc601cb785bbbd1a017d05d69763cd2c2e1ca3a4 (patch)
tree891b14072b55550e6d6939c4a7ef4667f516c6bd /hw
parent07a5d95a3b32820662194d353da9c098adddde77 (diff)
downloadqemu-cc601cb785bbbd1a017d05d69763cd2c2e1ca3a4.tar.gz
qdev: Convert qdev_unplug() to QError
Note: our device unplug methods don't need conversion work, because they can't currently fail. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/qdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 17a46a7bb3..0612dc0ba5 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -287,8 +287,7 @@ int qdev_init(DeviceState *dev)
int qdev_unplug(DeviceState *dev)
{
if (!dev->parent_bus->allow_hotplug) {
- error_report("Bus %s does not support hotplugging",
- dev->parent_bus->name);
+ qerror_report(QERR_BUS_NO_HOTPLUG, dev->parent_bus->name);
return -1;
}
assert(dev->info->unplug != NULL);