]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/display/virtio-gpu-pci.c
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / hw / display / virtio-gpu-pci.c
index 7248ec30c7d2f8455a4e22020644bcc48eee6026..d742a30aecf75a01fbb8ee8eb4ad247e096532c1 100644 (file)
@@ -67,8 +67,8 @@ static const TypeInfo virtio_gpu_pci_base_info = {
 
 #define TYPE_VIRTIO_GPU_PCI "virtio-gpu-pci"
 typedef struct VirtIOGPUPCI VirtIOGPUPCI;
-#define VIRTIO_GPU_PCI(obj)                                 \
-    OBJECT_CHECK(VirtIOGPUPCI, (obj), TYPE_VIRTIO_GPU_PCI)
+DECLARE_INSTANCE_CHECKER(VirtIOGPUPCI, VIRTIO_GPU_PCI,
+                         TYPE_VIRTIO_GPU_PCI)
 
 struct VirtIOGPUPCI {
     VirtIOGPUPCIBase parent_obj;