summary refs log tree commit diff stats
path: root/hw/audio/ac97.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/audio/ac97.c')
-rw-r--r--hw/audio/ac97.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c
index 3f0053f94d..e373f09d78 100644
--- a/hw/audio/ac97.c
+++ b/hw/audio/ac97.c
@@ -1344,7 +1344,7 @@ static void ac97_class_init(ObjectClass *klass, void *data)
     dc->desc = "Intel 82801AA AC97 Audio";
     dc->vmsd = &vmstate_ac97;
     device_class_set_props(dc, ac97_properties);
-    dc->reset = ac97_on_reset;
+    device_class_set_legacy_reset(dc, ac97_on_reset);
 }
 
 static const TypeInfo ac97_info = {