]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/misc/mst_fpga.c
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / hw / misc / mst_fpga.c
index 314dd5fcbd4039aadaecea3ba159cf046212cf50..f74d8cdd4aca6f7ddc995e0750ab222ed8881df7 100644 (file)
@@ -42,8 +42,8 @@
 
 #define TYPE_MAINSTONE_FPGA "mainstone-fpga"
 typedef struct mst_irq_state mst_irq_state;
-#define MAINSTONE_FPGA(obj) \
-    OBJECT_CHECK(mst_irq_state, (obj), TYPE_MAINSTONE_FPGA)
+DECLARE_INSTANCE_CHECKER(mst_irq_state, MAINSTONE_FPGA,
+                         TYPE_MAINSTONE_FPGA)
 
 struct mst_irq_state {
     SysBusDevice parent_obj;