diff options
author | Thomas Huth | 2017-11-30 21:19:00 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2017-12-14 11:16:52 +0100 |
commit | 81950da6819bbe77f38835724cc4643f19677554 (patch) | |
tree | 0da3e22c2faa2330d37de6487c3f6120cfe31ca4 /hw | |
parent | Update version for v2.11.0 release (diff) | |
download | qemu-81950da6819bbe77f38835724cc4643f19677554.tar.gz qemu-81950da6819bbe77f38835724cc4643f19677554.tar.xz qemu-81950da6819bbe77f38835724cc4643f19677554.zip |
hmp-commands: Remove the deprecated usb_add and usb_del
It's easy to use device_add and device_del as replacement instead.
The usb_add and usb_del commands are deprecated since QEMU 2.10,
and nobody complained that they are still needed, so let's get rid
of them now to make the HMP interface a little bit less overloaded.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1512073140-17672-1-git-send-email-thuth@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/usb/bus.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/hw/usb/bus.c b/hw/usb/bus.c index e56dc3348a..11f7720d71 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -559,28 +559,6 @@ int usb_device_detach(USBDevice *dev) return 0; } -int usb_device_delete_addr(int busnr, int addr) -{ - USBBus *bus; - USBPort *port; - USBDevice *dev; - - bus = usb_bus_find(busnr); - if (!bus) - return -1; - - QTAILQ_FOREACH(port, &bus->used, next) { - if (port->dev->addr == addr) - break; - } - if (!port) - return -1; - dev = port->dev; - - object_unparent(OBJECT(dev)); - return 0; -} - static const char *usb_speed(unsigned int speed) { static const char *txt[] = { |