aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-02-03 17:41:59 -0600
committerBlue Swirl <blauwirbel@gmail.com>2012-02-04 17:24:41 +0000
commitd217d208b5b518251196fbadd7f2fb1ed246cb13 (patch)
treeb7d1db52f7ab53c551361565e7be20abb807e87b
parent47c012e21cb368d9bf6be80cce8322c1e4481aa6 (diff)
usb-bsd: convert to QOM
Simple enough. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--usb-bsd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usb-bsd.c b/usb-bsd.c
index 2c6afc8f32..43fd1a1526 100644
--- a/usb-bsd.c
+++ b/usb-bsd.c
@@ -410,15 +410,16 @@ static void usb_host_class_initfn(ObjectClass *klass, void *data)
uc->handle_destroy = usb_host_handle_destroy;
}
-static struct DeviceInfo usb_host_dev_info = {
- .name = "usb-host",
- .size = sizeof(USBHostDevice),
- .class_init= usb_host_initfn,
+static TypeInfo usb_host_dev_info = {
+ .name = "usb-host",
+ .parent = TYPE_USB_DEVICE,
+ .instance_size = sizeof(USBHostDevice),
+ .class_init = usb_host_initfn,
};
static void usb_host_register_devices(void)
{
- usb_qdev_register(&usb_host_dev_info, NULL, NULL);
+ type_register_static(&usb_host_dev_info);
}
device_init(usb_host_register_devices)