aboutsummaryrefslogtreecommitdiff
path: root/hw/rtc/aspeed_rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/rtc/aspeed_rtc.c')
-rw-r--r--hw/rtc/aspeed_rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rtc/aspeed_rtc.c b/hw/rtc/aspeed_rtc.c
index 589d9a5a7a..3cddf43eea 100644
--- a/hw/rtc/aspeed_rtc.c
+++ b/hw/rtc/aspeed_rtc.c
@@ -162,7 +162,7 @@ static void aspeed_rtc_class_init(ObjectClass *klass, void *data)
dc->realize = aspeed_rtc_realize;
dc->vmsd = &vmstate_aspeed_rtc;
- dc->reset = aspeed_rtc_reset;
+ device_class_set_legacy_reset(dc, aspeed_rtc_reset);
}
static const TypeInfo aspeed_rtc_info = {