aboutsummaryrefslogtreecommitdiff
path: root/include/hw/char/pl011.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/char/pl011.h')
-rw-r--r--include/hw/char/pl011.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/char/pl011.h b/include/hw/char/pl011.h
index ddbd8ad45b..80de4ecde6 100644
--- a/include/hw/char/pl011.h
+++ b/include/hw/char/pl011.h
@@ -23,7 +23,8 @@
#define TYPE_PL011 "pl011"
typedef struct PL011State PL011State;
-#define PL011(obj) OBJECT_CHECK(PL011State, (obj), TYPE_PL011)
+DECLARE_INSTANCE_CHECKER(PL011State, PL011,
+ TYPE_PL011)
/* This shares the same struct (and cast macro) as the base pl011 device */
#define TYPE_PL011_LUMINARY "pl011_luminary"