]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/nvram/eeprom93xx.c
Merge remote-tracking branch 'remotes/xtensa/tags/20200106-xtensa' into staging
[mirror_qemu.git] / hw / nvram / eeprom93xx.c
index 5b01b9b03ff3a107b0559023d95286832a0b8a04..07f09549ed99d20d0e3f8b6fd97b8f1cf98726d9 100644 (file)
@@ -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(dev, 0, &vmstate_eeprom, eeprom);
+    vmstate_register(VMSTATE_IF(dev), 0, &vmstate_eeprom, eeprom);
     return eeprom;
 }
 
@@ -329,7 +329,7 @@ void eeprom93xx_free(DeviceState *dev, eeprom_t *eeprom)
 {
     /* Destroy EEPROM. */
     logout("eeprom = 0x%p\n", eeprom);
-    vmstate_unregister(dev, &vmstate_eeprom, eeprom);
+    vmstate_unregister(VMSTATE_IF(dev), &vmstate_eeprom, eeprom);
     g_free(eeprom);
 }