summary refs log tree commit diff stats
path: root/hw/rtc/exynos4210_rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/rtc/exynos4210_rtc.c')
-rw-r--r--hw/rtc/exynos4210_rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rtc/exynos4210_rtc.c b/hw/rtc/exynos4210_rtc.c
index 319371f97d..ca28a45672 100644
--- a/hw/rtc/exynos4210_rtc.c
+++ b/hw/rtc/exynos4210_rtc.c
@@ -596,7 +596,7 @@ static void exynos4210_rtc_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
 
-    dc->reset = exynos4210_rtc_reset;
+    device_class_set_legacy_reset(dc, exynos4210_rtc_reset);
     dc->vmsd = &vmstate_exynos4210_rtc_state;
 }