Revision 5fce2b3e hw/eeprom93xx.c

b/hw/eeprom93xx.c
289 289
}
290 290
#endif
291 291

  
292
eeprom_t *eeprom93xx_new(uint16_t nwords)
292
eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords)
293 293
{
294 294
    /* Add a new EEPROM (with 16, 64 or 256 words). */
295 295
    eeprom_t *eeprom;
......
316 316
    /* Output DO is tristate, read results in 1. */
317 317
    eeprom->eedo = 1;
318 318
    logout("eeprom = 0x%p, nwords = %u\n", eeprom, nwords);
319
    vmstate_register(NULL, 0, &vmstate_eeprom, eeprom);
319
    vmstate_register(dev, 0, &vmstate_eeprom, eeprom);
320 320
    return eeprom;
321 321
}
322 322

  
323
void eeprom93xx_free(eeprom_t *eeprom)
323
void eeprom93xx_free(DeviceState *dev, eeprom_t *eeprom)
324 324
{
325 325
    /* Destroy EEPROM. */
326 326
    logout("eeprom = 0x%p\n", eeprom);
327
    vmstate_unregister(NULL, &vmstate_eeprom, eeprom);
327
    vmstate_unregister(dev, &vmstate_eeprom, eeprom);
328 328
    qemu_free(eeprom);
329 329
}
330 330

  

Also available in: Unified diff