summary refs log tree commit diff stats
path: root/hw/intc/nios2_iic.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/intc/nios2_iic.c')
-rw-r--r--hw/intc/nios2_iic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/intc/nios2_iic.c b/hw/intc/nios2_iic.c
index 2594381a95..aa26f059a1 100644
--- a/hw/intc/nios2_iic.c
+++ b/hw/intc/nios2_iic.c
@@ -29,8 +29,8 @@
 
 #define TYPE_ALTERA_IIC "altera,iic"
 typedef struct AlteraIIC AlteraIIC;
-#define ALTERA_IIC(obj) \
-    OBJECT_CHECK(AlteraIIC, (obj), TYPE_ALTERA_IIC)
+DECLARE_INSTANCE_CHECKER(AlteraIIC, ALTERA_IIC,
+                         TYPE_ALTERA_IIC)
 
 struct AlteraIIC {
     SysBusDevice  parent_obj;