summaryrefslogtreecommitdiffstats
path: root/include/hw/rtc/pl031.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/rtc/pl031.h')
-rw-r--r--include/hw/rtc/pl031.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/rtc/pl031.h b/include/hw/rtc/pl031.h
index 3ddf48cc76..3897b424d4 100644
--- a/include/hw/rtc/pl031.h
+++ b/include/hw/rtc/pl031.h
@@ -20,7 +20,8 @@
#define TYPE_PL031 "pl031"
typedef struct PL031State PL031State;
-#define PL031(obj) OBJECT_CHECK(PL031State, (obj), TYPE_PL031)
+DECLARE_INSTANCE_CHECKER(PL031State, PL031,
+ TYPE_PL031)
struct PL031State {
SysBusDevice parent_obj;