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-net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/usb-net.c') diff --git a/hw/usb-net.c b/hw/usb-net.c index 57b58ac..65eee95 100644 --- a/hw/usb-net.c +++ b/hw/usb-net.c @@ -1413,6 +1413,7 @@ static struct DeviceInfo net_info = { static void usb_net_register_devices(void) { - usb_qdev_register(&net_info, "net", usb_net_init); + usb_qdev_register(&net_info); + usb_legacy_register("usb-net", "net", usb_net_init); } device_init(usb_net_register_devices) -- cgit v1.1