projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3418bd2
)
usb: hotplug windup
author
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 25 Sep 2009 19:42:42 +0000
(21:42 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:48 +0000
(09:32 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/usb-bus.c
patch
|
blob
|
history
diff --git
a/hw/usb-bus.c
b/hw/usb-bus.c
index d0b59dd4ddab67d5ea6c1343eb0e2dbcb4d18c7d..0c63279350ccd942446e1b1996be0dbb17e757fe 100644
(file)
--- a/
hw/usb-bus.c
+++ b/
hw/usb-bus.c
@@
-18,6
+18,7
@@
void usb_bus_new(USBBus *bus, DeviceState *host)
{
qbus_create_inplace(&bus->qbus, &usb_bus_info, host, NULL);
bus->busnr = next_usb_bus++;
+ bus->qbus.allow_hotplug = 1; /* Yes, we can */
QTAILQ_INIT(&bus->free);
QTAILQ_INIT(&bus->used);
QTAILQ_INSERT_TAIL(&busses, bus, next);
@@
-65,6
+66,7
@@
void usb_qdev_register(USBDeviceInfo *info)
{
info->qdev.bus_info = &usb_bus_info;
info->qdev.init = usb_qdev_init;
+ info->qdev.unplug = qdev_simple_unplug_cb;
info->qdev.exit = usb_qdev_exit;
qdev_register(&info->qdev);
}