mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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:
parent
7f595609b4
commit
ba02430f1a
12 changed files with 40 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue