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 | cc601cb785bbbd1a017d05d69763cd2c2e1ca3a4 (patch) | |
tree | 891b14072b55550e6d6939c4a7ef4667f516c6bd | |
parent | 07a5d95a3b32820662194d353da9c098adddde77 (diff) |
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>
-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); |