qdev: don't access name through info
[qemu.git] / hw / container.c
1 #include "sysbus.h"
2
3 static int container_initfn(SysBusDevice *dev)
4 {
5 return 0;
6 }
7
8 static SysBusDeviceInfo container_info = {
9 .init = container_initfn,
10 .qdev.name = "container",
11 .qdev.size = sizeof(SysBusDevice),
12 .qdev.no_user = 1,
13 };
14
15 static void container_init(void)
16 {
17 sysbus_register_withprop(&container_info);
18 }
19
20 device_init(container_init);