Dynamic TypeInfo initialization, not handled by the script used
in the previous patch.

Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
---
Changes series v1 -> v2:
* (new patch added to series)
---
 hw/net/eepro100.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c
index 4bf71f2..5b55e31 100644
--- a/hw/net/eepro100.c
+++ b/hw/net/eepro100.c
@@ -2101,12 +2101,17 @@ static void eepro100_register_types(void)
     for (i = 0; i < ARRAY_SIZE(e100_devices); i++) {
         TypeInfo type_info = {};
         E100PCIDeviceInfo *info = &e100_devices[i];
+        InterfaceInfo interfaces[] = {
+            { INTERFACE_LEGACY_PCI_DEVICE },
+            { },
+        };
 
         type_info.name = info->name;
         type_info.parent = TYPE_PCI_DEVICE;
         type_info.class_init = eepro100_class_init;
         type_info.instance_size = sizeof(EEPRO100State);
         type_info.instance_init = eepro100_instance_init;
+        type_info.interfaces = interfaces;
 
         type_register(&type_info);
     }
-- 
2.7.4


Reply via email to