summaryrefslogtreecommitdiff
path: root/hw/eepro100.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-25 21:42:38 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:48 -0500
commite3936fa574d9fbe241acdc76b5195b048567537e (patch)
tree51832bf75d2c7677e08e833ce71921cde22ccb9b /hw/eepro100.c
parenta36a344dcd5c778cc0417df36c5aa8f95c5497c3 (diff)
downloadqemu-e3936fa574d9fbe241acdc76b5195b048567537e.tar.gz
pci: move unregister from PCIDevice to PCIDeviceInfo
One more cleanup while being at it ;) Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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 1d66edb99a..d446e71c60 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),