From ba02430f1a681173cff5336c626d6edc5ea268db Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Thu, 8 Dec 2011 14:56:53 -0600 Subject: 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 --- hw/usb-hid.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'hw/usb-hid.c') diff --git a/hw/usb-hid.c b/hw/usb-hid.c index 4af27a22dd..669aae4c3c 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) -- cgit v1.2.3