From 5fce2b3e46b697230996568e1fed39d02a6bedb2 Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Fri, 25 Jun 2010 11:09:21 -0600 Subject: eepro100: Add a dev field to eeprom new/free functions This allows us to create a more meaningful savevm string. Signed-off-by: Alex Williamson Signed-off-by: Anthony Liguori --- hw/eepro100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/eepro100.c') diff --git a/hw/eepro100.c b/hw/eepro100.c index 0ddca8b2c4..2b75c8f495 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -1835,7 +1835,7 @@ static int pci_nic_uninit(PCIDevice *pci_dev) cpu_unregister_io_memory(s->mmio_index); vmstate_unregister(&pci_dev->qdev, s->vmstate, s); - eeprom93xx_free(s->eeprom); + eeprom93xx_free(&pci_dev->qdev, s->eeprom); qemu_del_vlan_client(&s->nic->nc); return 0; } @@ -1862,7 +1862,7 @@ static int e100_nic_init(PCIDevice *pci_dev) /* Add 64 * 2 EEPROM. i82557 and i82558 support a 64 word EEPROM, * i82559 and later support 64 or 256 word EEPROM. */ - s->eeprom = eeprom93xx_new(EEPROM_SIZE); + s->eeprom = eeprom93xx_new(&pci_dev->qdev, EEPROM_SIZE); /* Handler for memory-mapped I/O */ s->mmio_index = -- cgit v1.2.3