aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-hid.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-08 14:56:53 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-02-03 10:41:03 -0600
commitba02430f1a681173cff5336c626d6edc5ea268db (patch)
tree74913357d1d97791c10e8f94d95ec36986a97168 /hw/usb-hid.c
parent7f595609b49615b07c50b7182c4ef125c39cb5da (diff)
downloadqemu-ba02430f1a681173cff5336c626d6edc5ea268db.zip
qemu-ba02430f1a681173cff5336c626d6edc5ea268db.tar.gz
qemu-ba02430f1a681173cff5336c626d6edc5ea268db.tar.bz2
usb: separate out legacy usb registration from type registration
Type registeration is going to get turned into a QOM call so decouple the legacy support. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-hid.c')
-rw-r--r--hw/usb-hid.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/hw/usb-hid.c b/hw/usb-hid.c
index 4af27a2..669aae4 100644
--- a/hw/usb-hid.c
+++ b/hw/usb-hid.c
@@ -617,8 +617,11 @@ static struct DeviceInfo usb_keyboard_info = {
static void usb_hid_register_devices(void)
{
- usb_qdev_register(&usb_tablet_info, "tablet", NULL);
- usb_qdev_register(&usb_mouse_info, "mouse", NULL);
- usb_qdev_register(&usb_keyboard_info, "keyboard", NULL);
+ usb_qdev_register(&usb_tablet_info);
+ usb_legacy_register("usb-tablet", "tablet", NULL);
+ usb_qdev_register(&usb_mouse_info);
+ usb_legacy_register("usb-mouse", "mouse", NULL);
+ usb_qdev_register(&usb_keyboard_info);
+ usb_legacy_register("usb-kbd", "keyboard", NULL);
}
device_init(usb_hid_register_devices)