diff options
Diffstat (limited to 'usb-linux.c')
-rw-r--r-- | usb-linux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usb-linux.c b/usb-linux.c index e7fc9ecd5c..5e95be62ca 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1436,12 +1436,13 @@ static TypeInfo usb_host_dev_info = { .class_init = usb_host_class_initfn, }; -static void usb_host_register_devices(void) +static void usb_host_register_types(void) { type_register_static(&usb_host_dev_info); usb_legacy_register("usb-host", "host", usb_host_device_open); } -device_init(usb_host_register_devices) + +type_init(usb_host_register_types) USBDevice *usb_host_device_open(const char *devname) { |