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-msd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/usb-msd.c') diff --git a/hw/usb-msd.c b/hw/usb-msd.c index ceb01e0eef..19d0d7b8c8 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -667,6 +667,7 @@ static struct DeviceInfo msd_info = { static void usb_msd_register_devices(void) { - usb_qdev_register(&msd_info, "disk", usb_msd_init); + usb_qdev_register(&msd_info); + usb_legacy_register("usb-storage", "disk", usb_msd_init); } device_init(usb_msd_register_devices) -- cgit 1.4.1