diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-03-21 10:53:00 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-03-22 07:44:15 +0100 |
commit | ff90d50393e4485e336ec57e157eee0f5d116d91 (patch) | |
tree | 5d2581d6838f0f43e9f0a9fcd25f6511642dac59 | |
parent | 43f20196716b68d334447c73e0221a6eacdfdb25 (diff) | |
download | qemu-ff90d50393e4485e336ec57e157eee0f5d116d91.zip qemu-ff90d50393e4485e336ec57e157eee0f5d116d91.tar.gz qemu-ff90d50393e4485e336ec57e157eee0f5d116d91.tar.bz2 |
vmmouse: Register vmstate via qdev
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r-- | hw/vmmouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vmmouse.c b/hw/vmmouse.c index ab8dbd6..1113f33 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[]) { |