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>
This commit is contained in:
Anthony Liguori 2011-12-08 14:56:53 -06:00
parent 7f595609b4
commit ba02430f1a
12 changed files with 40 additions and 27 deletions

View file

@ -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)