aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio/virtio-pmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/virtio/virtio-pmem.c')
-rw-r--r--hw/virtio/virtio-pmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/virtio-pmem.c b/hw/virtio/virtio-pmem.c
index c0c9395e55..97287e923b 100644
--- a/hw/virtio/virtio-pmem.c
+++ b/hw/virtio/virtio-pmem.c
@@ -165,7 +165,7 @@ static void virtio_pmem_class_init(ObjectClass *klass, void *data)
VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
VirtIOPMEMClass *vpc = VIRTIO_PMEM_CLASS(klass);
- dc->props = virtio_pmem_properties;
+ device_class_set_props(dc, virtio_pmem_properties);
vdc->realize = virtio_pmem_realize;
vdc->unrealize = virtio_pmem_unrealize;