aboutsummaryrefslogtreecommitdiff
path: root/hw/rtc/allwinner-rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/rtc/allwinner-rtc.c')
-rw-r--r--hw/rtc/allwinner-rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rtc/allwinner-rtc.c b/hw/rtc/allwinner-rtc.c
index 2ac50b30cb..1057d6a57f 100644
--- a/hw/rtc/allwinner-rtc.c
+++ b/hw/rtc/allwinner-rtc.c
@@ -320,7 +320,7 @@ static void allwinner_rtc_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
- dc->reset = allwinner_rtc_reset;
+ device_class_set_legacy_reset(dc, allwinner_rtc_reset);
dc->vmsd = &allwinner_rtc_vmstate;
device_class_set_props(dc, allwinner_rtc_properties);
}