diff options
Diffstat (limited to 'hw/timer/twl92230.c')
-rw-r--r-- | hw/timer/twl92230.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/timer/twl92230.c b/hw/timer/twl92230.c index c0aa8ae3de..eb58c378e0 100644 --- a/hw/timer/twl92230.c +++ b/hw/timer/twl92230.c @@ -791,11 +791,13 @@ static const VMStateDescription vmstate_menelaus_tm = { } }; -static void menelaus_pre_save(void *opaque) +static int menelaus_pre_save(void *opaque) { MenelausState *s = opaque; /* Should be <= 1000 */ s->rtc_next_vmstate = s->rtc.next - qemu_clock_get_ms(rtc_clock); + + return 0; } static int menelaus_post_load(void *opaque, int version_id) |