diff mbox

[RFC,v2,15/20] eepro100: Add INTERFACE_LEGACY_PCI_DEVICE

Message ID 1480111556-32586-16-git-send-email-ehabkost@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eduardo Habkost Nov. 25, 2016, 10:05 p.m. UTC
Dynamic TypeInfo initialization, not handled by the script used
in the previous patch.

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

Patch

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);
     }