diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-31 14:23:59 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-09 14:55:17 -0500 |
commit | 806b60248218bd5f74a8b070f5a99a864e8e51c6 (patch) | |
tree | ef5ebf0b2f0aebb33cfbb6a3c7b58de8092a079c /vl.c | |
parent | 755700885432a8692c53549dd177d7d52d5cdd17 (diff) |
qdev/usb: add usb bus support to qdev, convert drivers.
* Add USBBus.
* Add USBDeviceInfo, move device callbacks here.
* Add usb-qdev helper functions.
* Switch drivers to qdev.
TODO:
* make the rest of qemu aware of usb busses and kill the FIXMEs
added by this patch.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2481,7 +2481,7 @@ static void usb_msd_password_cb(void *opaque, int err) if (!err) usb_device_add_dev(dev); else - dev->handle_destroy(dev); + dev->info->handle_destroy(dev); } static int usb_device_add(const char *devname, int is_hotplug) @@ -2567,7 +2567,7 @@ int usb_device_del_addr(int bus_num, int addr) dev = port->dev; *lastp = port->next; usb_attach(port, NULL); - dev->handle_destroy(dev); + dev->info->handle_destroy(dev); port->next = free_usb_ports; free_usb_ports = port; return 0; |