summaryrefslogtreecommitdiffstats
path: root/hw/rtc/sun4v-rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/rtc/sun4v-rtc.c')
-rw-r--r--hw/rtc/sun4v-rtc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/rtc/sun4v-rtc.c b/hw/rtc/sun4v-rtc.c
index b5ebefd1b2..18979d25d0 100644
--- a/hw/rtc/sun4v-rtc.c
+++ b/hw/rtc/sun4v-rtc.c
@@ -21,7 +21,8 @@
#define TYPE_SUN4V_RTC "sun4v_rtc"
typedef struct Sun4vRtc Sun4vRtc;
-#define SUN4V_RTC(obj) OBJECT_CHECK(Sun4vRtc, (obj), TYPE_SUN4V_RTC)
+DECLARE_INSTANCE_CHECKER(Sun4vRtc, SUN4V_RTC,
+ TYPE_SUN4V_RTC)
struct Sun4vRtc {
SysBusDevice parent_obj;