diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-08-31 14:24:00 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-09 14:55:17 -0500 |
commit | a5d2f7273c4f59942cc7ffa763d6b60a6f44e908 (patch) | |
tree | 58aa343b12e77313bc708d3166a9bc609039d40c /hw/bt-hid.c | |
parent | 806b60248218bd5f74a8b070f5a99a864e8e51c6 (diff) | |
download | qemu-a5d2f7273c4f59942cc7ffa763d6b60a6f44e908.zip qemu-a5d2f7273c4f59942cc7ffa763d6b60a6f44e908.tar.gz qemu-a5d2f7273c4f59942cc7ffa763d6b60a6f44e908.tar.bz2 |
qdev/usb: make qemu aware of usb busses.
Move usb code from vl.c to usb-bus.c and make it use the new data
structures added by qdev conversion. qemu usb core should be able
to handle multiple USB busses just fine now (untested though).
Kill some usb_*_init() legacy functions, use usb_create_simple()
instead.
Kill some FIXMEs added by the first qdev/usb patch.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/bt-hid.c')
-rw-r--r-- | hw/bt-hid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/bt-hid.c b/hw/bt-hid.c index 6f37705..020176e 100644 --- a/hw/bt-hid.c +++ b/hw/bt-hid.c @@ -566,5 +566,6 @@ static struct bt_device_s *bt_hid_init(struct bt_scatternet_s *net, struct bt_device_s *bt_keyboard_init(struct bt_scatternet_s *net) { - return bt_hid_init(net, usb_keyboard_init(), class_keyboard); + USBDevice *dev = usb_create_simple(NULL /* FIXME */, "QEMU USB Keyboard"); + return bt_hid_init(net, dev, class_keyboard); } |