mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
savevm: Port to qdev.vmsd all devices that have qdev
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
70cca6d872
commit
be73cfe2be
26 changed files with 60 additions and 37 deletions
|
@ -184,7 +184,6 @@ static int max7310_init(i2c_slave *i2c)
|
|||
|
||||
max7310_reset(&s->i2c);
|
||||
|
||||
vmstate_register(-1, &vmstate_max7310, s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -206,6 +205,7 @@ void max7310_gpio_out_set(i2c_slave *i2c, int line, qemu_irq handler)
|
|||
static I2CSlaveInfo max7310_info = {
|
||||
.qdev.name = "max7310",
|
||||
.qdev.size = sizeof(MAX7310State),
|
||||
.qdev.vmsd = &vmstate_max7310,
|
||||
.init = max7310_init,
|
||||
.event = max7310_event,
|
||||
.recv = max7310_rx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue