Patchwork [06/11] fdc: fix migration of non-ISA fdc devices

login
register
mail settings
Submitter Anthony Liguori
Date March 23, 2011, 12:16 a.m.
Message ID <1300839376-22520-7-git-send-email-aliguori@us.ibm.com>
Download mbox | patch
Permalink /patch/87975/
State New
Headers show

Comments

Anthony Liguori - March 23, 2011, 12:16 a.m.
Again, we are not using a unique name for non-ISA fdc devices and as a result,
we may misinterpret an ISA fdc device as a non-ISA fdc device.

In this case, both ISA fdc and non-ISA fdc are using too generic of a name.
Since ISA fdc is more common, let it keep the old name.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
 hw/fdc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/fdc.c b/hw/fdc.c
index 4b02dce..9432d09 100644
--- a/hw/fdc.c
+++ b/hw/fdc.c
@@ -1947,7 +1947,7 @@  static void init_vmstate_description_0(void)
 vmstate_init(init_vmstate_description_0);
 
 static const VMStateDescription vmstate_sysbus_fdc ={
-    .name = "fdc",
+    .name = "sysbus-fdc",
     .version_id = 2,
     .minimum_version_id = 2,
     .fields = (VMStateField []) {