diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-08 14:56:53 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-03 10:41:03 -0600 |
commit | ba02430f1a681173cff5336c626d6edc5ea268db (patch) | |
tree | 74913357d1d97791c10e8f94d95ec36986a97168 /usb-linux.c | |
parent | 7f595609b49615b07c50b7182c4ef125c39cb5da (diff) |
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 'usb-linux.c')
-rw-r--r-- | usb-linux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usb-linux.c b/usb-linux.c index 31810f6f40..a337db5296 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1434,7 +1434,8 @@ static struct DeviceInfo usb_host_dev_info = { static void usb_host_register_devices(void) { - usb_qdev_register(&usb_host_dev_info, "host", usb_host_device_open); + usb_qdev_register(&usb_host_dev_info); + usb_legacy_register("usb-host", "host", usb_host_device_open); } device_init(usb_host_register_devices) |