diff mbox

hw/net/ne2000-isa: Register vmstate struct

Message ID 1402159991-13919-1-git-send-email-peter.maydell@linaro.org
State Superseded
Headers show

Commit Message

Peter Maydell June 7, 2014, 4:53 p.m. UTC
The ne2000-isa device defines a VMState struct for migration, but
we forgot to actually register it. Correct this deficiency by
setting dc->vmsd.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
I think this is the last of the "oops, we didn't actually register
the vmstate" bugs that clang 3.4 warns about.

 hw/net/ne2000-isa.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Tokarev June 8, 2014, 12:13 p.m. UTC | #1
Applied to -trivial, thank you!

/mjt
diff mbox

Patch

diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c
index c660e58..0a14f6d 100644
--- a/hw/net/ne2000-isa.c
+++ b/hw/net/ne2000-isa.c
@@ -98,6 +98,7 @@  static void isa_ne2000_class_initfn(ObjectClass *klass, void *data)
 
     dc->realize = isa_ne2000_realizefn;
     dc->props = ne2000_isa_properties;
+    dc->vmsd = &vmstate_isa_ne2000;
     set_bit(DEVICE_CATEGORY_NETWORK, dc->categories);
 }