aboutsummaryrefslogtreecommitdiff
path: root/hw/eepro100.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r--hw/eepro100.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 1d66edb..d446e71 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -1778,8 +1778,6 @@ static int nic_init(PCIDevice *pci_dev, uint32_t device)
TRACE(OTHER, logout("\n"));
- s->dev.unregister = pci_nic_uninit;
-
s->device = device;
pci_reset(s);
@@ -1888,6 +1886,7 @@ static PCIDeviceInfo eepro100_info[] = {
.qdev.name = "i82551",
.qdev.size = sizeof(EEPRO100State),
.init = pci_i82551_init,
+ .exit = pci_nic_uninit,
},{
.qdev.name = "i82557a",
.qdev.size = sizeof(EEPRO100State),
@@ -1896,6 +1895,7 @@ static PCIDeviceInfo eepro100_info[] = {
.qdev.name = "i82557b",
.qdev.size = sizeof(EEPRO100State),
.init = pci_i82557b_init,
+ .exit = pci_nic_uninit,
},{
.qdev.name = "i82557c",
.qdev.size = sizeof(EEPRO100State),
@@ -1924,6 +1924,7 @@ static PCIDeviceInfo eepro100_info[] = {
.qdev.name = "i82559er",
.qdev.size = sizeof(EEPRO100State),
.init = pci_i82559er_init,
+ .exit = pci_nic_uninit,
},{
.qdev.name = "i82562",
.qdev.size = sizeof(EEPRO100State),