summaryrefslogtreecommitdiffstats
path: root/hw/eepro100.c
diff options
context:
space:
mode:
authorAlex Williamson2010-06-25 19:09:21 +0200
committerAnthony Liguori2010-07-06 17:36:28 +0200
commit5fce2b3e46b697230996568e1fed39d02a6bedb2 (patch)
treee3509a473032f8a4192e245fe47f6ce1195c2dbb /hw/eepro100.c
parentsavevm: Make use of DeviceState (diff)
downloadqemu-5fce2b3e46b697230996568e1fed39d02a6bedb2.tar.gz
qemu-5fce2b3e46b697230996568e1fed39d02a6bedb2.tar.xz
qemu-5fce2b3e46b697230996568e1fed39d02a6bedb2.zip
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 <alex.williamson@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r--hw/eepro100.c4
1 files changed, 2 insertions, 2 deletions
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 =