]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/rtc/aspeed_rtc.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / include / hw / rtc / aspeed_rtc.h
index 295f4a7d30f0673c44b11f56a30a733191ff562f..d7691ab88f5b2009c0e134d0dc23c6886cd72850 100644 (file)
@@ -24,6 +24,7 @@ struct AspeedRtcState {
 typedef struct AspeedRtcState AspeedRtcState;
 
 #define TYPE_ASPEED_RTC "aspeed.rtc"
-#define ASPEED_RTC(obj) OBJECT_CHECK(AspeedRtcState, (obj), TYPE_ASPEED_RTC)
+DECLARE_INSTANCE_CHECKER(AspeedRtcState, ASPEED_RTC,
+                         TYPE_ASPEED_RTC)
 
 #endif /* HW_RTC_ASPEED_RTC_H */