aboutsummaryrefslogtreecommitdiff
path: root/hw/audio/pl041.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/audio/pl041.c')
-rw-r--r--hw/audio/pl041.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/audio/pl041.c b/hw/audio/pl041.c
index e514a8c..570a234 100644
--- a/hw/audio/pl041.c
+++ b/hw/audio/pl041.c
@@ -79,7 +79,8 @@ typedef struct {
#define TYPE_PL041 "pl041"
typedef struct PL041State PL041State;
-#define PL041(obj) OBJECT_CHECK(PL041State, (obj), TYPE_PL041)
+DECLARE_INSTANCE_CHECKER(PL041State, PL041,
+ TYPE_PL041)
struct PL041State {
SysBusDevice parent_obj;