]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/pxa2xx_gpio: Correct and register vmstate
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 29 Jun 2014 17:38:40 +0000 (18:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 29 Jun 2014 17:38:40 +0000 (18:38 +0100)
commit166fa9999688ebbcc3db945309bbdcef1aab5774
tree514b97b8d149df8cc992119c9fceff9fa42ac612
parentab7a0f0b6dbe8836d490c736803abef6e3695e1f
hw/arm/pxa2xx_gpio: Correct and register vmstate

The pxa2xx-gpio device has a VMStateDescription, but it was accidentally
never actually registered, and it wasn't quite correct. Remove the
'lines' field (this is a device property, not mutable state), add the
missing 'prev_level' field, and set dc->vmsd so it actually gets used.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
hw/arm/pxa2xx_gpio.c