aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio/vhost-user-blk-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/virtio/vhost-user-blk-pci.c')
-rw-r--r--hw/virtio/vhost-user-blk-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/vhost-user-blk-pci.c b/hw/virtio/vhost-user-blk-pci.c
index 1dc834a3ff..8d3d766427 100644
--- a/hw/virtio/vhost-user-blk-pci.c
+++ b/hw/virtio/vhost-user-blk-pci.c
@@ -69,7 +69,7 @@ static void vhost_user_blk_pci_class_init(ObjectClass *klass, void *data)
PCIDeviceClass *pcidev_k = PCI_DEVICE_CLASS(klass);
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
- dc->props = vhost_user_blk_pci_properties;
+ device_class_set_props(dc, vhost_user_blk_pci_properties);
k->realize = vhost_user_blk_pci_realize;
pcidev_k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
pcidev_k->device_id = PCI_DEVICE_ID_VIRTIO_BLOCK;