From ff90d50393e4485e336ec57e157eee0f5d116d91 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 21 Mar 2011 10:53:00 +0100 Subject: [PATCH] vmmouse: Register vmstate via qdev Signed-off-by: Jan Kiszka Signed-off-by: Aurelien Jarno --- hw/vmmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/vmmouse.c b/hw/vmmouse.c index ab8dbd6ccb..1113f33d68 100644 --- a/hw/vmmouse.c +++ b/hw/vmmouse.c @@ -265,7 +265,6 @@ static int vmmouse_initfn(ISADevice *dev) vmport_register(VMMOUSE_STATUS, vmmouse_ioport_read, s); vmport_register(VMMOUSE_COMMAND, vmmouse_ioport_read, s); vmport_register(VMMOUSE_DATA, vmmouse_ioport_read, s); - vmstate_register(NULL, 0, &vmstate_vmmouse, s); return 0; } @@ -274,6 +273,7 @@ static ISADeviceInfo vmmouse_info = { .init = vmmouse_initfn, .qdev.name = "vmmouse", .qdev.size = sizeof(VMMouseState), + .qdev.vmsd = &vmstate_vmmouse, .qdev.no_user = 1, .qdev.reset = vmmouse_reset, .qdev.props = (Property[]) { -- 2.11.4.GIT