summary refs log tree commit diff stats
path: root/hw/audio/adlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/audio/adlib.c')
-rw-r--r--hw/audio/adlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c
index a216fe1925..870116e324 100644
--- a/hw/audio/adlib.c
+++ b/hw/audio/adlib.c
@@ -53,7 +53,8 @@
 
 #define TYPE_ADLIB "adlib"
 typedef struct AdlibState AdlibState;
-#define ADLIB(obj) OBJECT_CHECK(AdlibState, (obj), TYPE_ADLIB)
+DECLARE_INSTANCE_CHECKER(AdlibState, ADLIB,
+                         TYPE_ADLIB)
 
 struct AdlibState {
     ISADevice parent_obj;