summaryrefslogtreecommitdiffstats
path: root/hw/net/sungem.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/net/sungem.c')
-rw-r--r--hw/net/sungem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/net/sungem.c b/hw/net/sungem.c
index 103a4e19d9..91753830a7 100644
--- a/hw/net/sungem.c
+++ b/hw/net/sungem.c
@@ -24,7 +24,8 @@
#define TYPE_SUNGEM "sungem"
typedef struct SunGEMState SunGEMState;
-#define SUNGEM(obj) OBJECT_CHECK(SunGEMState, (obj), TYPE_SUNGEM)
+DECLARE_INSTANCE_CHECKER(SunGEMState, SUNGEM,
+ TYPE_SUNGEM)
#define MAX_PACKET_SIZE 9016