diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-03-22 11:38:13 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-18 23:46:48 +0200 |
commit | d4b0b6c9fe57db2d8735fc91f229e8b5b269c68c (patch) | |
tree | 891b14072b55550e6d6939c4a7ef4667f516c6bd /hw/qdev.c | |
parent | 39f83a7d629a5c5edca8897a18a657b5094bb4c8 (diff) | |
download | qemu-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |