aboutsummaryrefslogtreecommitdiff
path: root/hw/net/xgmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/net/xgmac.c')
-rw-r--r--hw/net/xgmac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/net/xgmac.c b/hw/net/xgmac.c
index 10eebebe52..a066550023 100644
--- a/hw/net/xgmac.c
+++ b/hw/net/xgmac.c
@@ -141,7 +141,8 @@ typedef struct RxTxStats {
#define TYPE_XGMAC "xgmac"
typedef struct XgmacState XgmacState;
-#define XGMAC(obj) OBJECT_CHECK(XgmacState, (obj), TYPE_XGMAC)
+DECLARE_INSTANCE_CHECKER(XgmacState, XGMAC,
+ TYPE_XGMAC)
struct XgmacState {
SysBusDevice parent_obj;