aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio/calxeda-xgmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/vfio/calxeda-xgmac.c')
-rw-r--r--hw/vfio/calxeda-xgmac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vfio/calxeda-xgmac.c b/hw/vfio/calxeda-xgmac.c
index 24cee6d..e7767c4 100644
--- a/hw/vfio/calxeda-xgmac.c
+++ b/hw/vfio/calxeda-xgmac.c
@@ -20,6 +20,7 @@ static void calxeda_xgmac_realize(DeviceState *dev, Error **errp)
VFIOCalxedaXgmacDeviceClass *k = VFIO_CALXEDA_XGMAC_DEVICE_GET_CLASS(dev);
vdev->compat = g_strdup("calxeda,hb-xgmac");
+ vdev->num_compat = 1;
k->parent_realize(dev, errp);
}