aboutsummaryrefslogtreecommitdiff
path: root/hw/net/rocker/rocker.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/net/rocker/rocker.h')
-rw-r--r--hw/net/rocker/rocker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h
index 0dd49d5f41..941c932265 100644
--- a/hw/net/rocker/rocker.h
+++ b/hw/net/rocker/rocker.h
@@ -73,8 +73,8 @@ typedef struct desc_ring DescRing;
#define TYPE_ROCKER "rocker"
typedef struct rocker Rocker;
-#define ROCKER(obj) \
- OBJECT_CHECK(Rocker, (obj), TYPE_ROCKER)
+DECLARE_INSTANCE_CHECKER(Rocker, ROCKER,
+ TYPE_ROCKER)
Rocker *rocker_find(const char *name);
uint32_t rocker_fp_ports(Rocker *r);