Skip to content

Commit

Permalink
migration: Use vmstate_register_any() for eeprom93xx
Browse files Browse the repository at this point in the history
We can have more than one eeprom93xx.
For instance:

e100_nic_realize() -> eeprom93xx_new()

Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231020090731.28701-13-quintela@redhat.com>
  • Loading branch information
Juan Quintela committed Nov 1, 2023
1 parent a950091 commit 7769fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/nvram/eeprom93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords)
/* Output DO is tristate, read results in 1. */
eeprom->eedo = 1;
logout("eeprom = 0x%p, nwords = %u\n", eeprom, nwords);
vmstate_register(VMSTATE_IF(dev), 0, &vmstate_eeprom, eeprom);
vmstate_register_any(VMSTATE_IF(dev), &vmstate_eeprom, eeprom);
return eeprom;
}

Expand Down

0 comments on commit 7769fb8

Please sign in to comment.