summary refs log tree commit diff stats
path: root/hw/gus.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gus.c')
-rw-r--r--hw/gus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gus.c b/hw/gus.c
index d35da0a0c6..e9016d8105 100644
--- a/hw/gus.c
+++ b/hw/gus.c
@@ -287,7 +287,6 @@ static int gus_initfn (ISADevice *dev)
 
     AUD_set_active_out (s->voice, 1);
 
-    vmstate_register (0, &vmstate_gus, s);
     return 0;
 }
 
@@ -301,6 +300,7 @@ static ISADeviceInfo gus_info = {
     .qdev.name     = "gus",
     .qdev.desc     = "Gravis Ultrasound GF1",
     .qdev.size     = sizeof (GUSState),
+    .qdev.vmsd     = &vmstate_gus,
     .init          = gus_initfn,
     .qdev.props    = (Property[]) {
         DEFINE_PROP_UINT32 ("freq",    GUSState, freq,        44100),