summaryrefslogtreecommitdiff
path: root/hw/qdev.c
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
commitd4b0b6c9fe57db2d8735fc91f229e8b5b269c68c (patch)
tree891b14072b55550e6d6939c4a7ef4667f516c6bd /hw/qdev.c
parent39f83a7d629a5c5edca8897a18a657b5094bb4c8 (diff)
downloadqemu-d4b0b6c9fe57db2d8735fc91f229e8b5b269c68c.tar.gz
qemu-d4b0b6c9fe57db2d8735fc91f229e8b5b269c68c.tar.bz2
qemu-d4b0b6c9fe57db2d8735fc91f229e8b5b269c68c.zip
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/qdev.c')
-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);