]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/rtc/aspeed_rtc.h
Move QOM typedefs and add missing includes
[mirror_qemu.git] / include / hw / rtc / aspeed_rtc.h
index b94a7102688a82fabc84652b6b2732d5938f1f2a..295f4a7d30f0673c44b11f56a30a733191ff562f 100644 (file)
@@ -9,8 +9,9 @@
 #define HW_RTC_ASPEED_RTC_H
 
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
-typedef struct AspeedRtcState {
+struct AspeedRtcState {
     SysBusDevice parent_obj;
 
     MemoryRegion iomem;
@@ -19,7 +20,8 @@ typedef struct AspeedRtcState {
     uint32_t reg[0x18];
     int offset;
 
-} AspeedRtcState;
+};
+typedef struct AspeedRtcState AspeedRtcState;
 
 #define TYPE_ASPEED_RTC "aspeed.rtc"
 #define ASPEED_RTC(obj) OBJECT_CHECK(AspeedRtcState, (obj), TYPE_ASPEED_RTC)