summaryrefslogtreecommitdiffstats
path: root/hw/misc/mst_fpga.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/mst_fpga.c')
-rw-r--r--hw/misc/mst_fpga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/misc/mst_fpga.c b/hw/misc/mst_fpga.c
index 314dd5fcbd..f74d8cdd4a 100644
--- a/hw/misc/mst_fpga.c
+++ b/hw/misc/mst_fpga.c
@@ -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;