diff options
Diffstat (limited to 'hw/xilinx_uartlite.c')
-rw-r--r-- | hw/xilinx_uartlite.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/hw/xilinx_uartlite.c b/hw/xilinx_uartlite.c index 8baabc72bb..1491bbaeaa 100644 --- a/hw/xilinx_uartlite.c +++ b/hw/xilinx_uartlite.c @@ -218,15 +218,16 @@ static void xilinx_uartlite_class_init(ObjectClass *klass, void *data) sdc->init = xilinx_uartlite_init; } -static DeviceInfo xilinx_uartlite_info = { - .name = "xilinx,uartlite", - .size = sizeof (struct xlx_uartlite), - .class_init = xilinx_uartlite_class_init, +static TypeInfo xilinx_uartlite_info = { + .name = "xilinx,uartlite", + .parent = TYPE_SYS_BUS_DEVICE, + .instance_size = sizeof (struct xlx_uartlite), + .class_init = xilinx_uartlite_class_init, }; static void xilinx_uart_register(void) { - sysbus_qdev_register(&xilinx_uartlite_info); + type_register_static(&xilinx_uartlite_info); } device_init(xilinx_uart_register) |