summaryrefslogtreecommitdiffstats
path: root/hw/pcnet.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/pcnet.c
parenta36a344dcd5c778cc0417df36c5aa8f95c5497c3 (diff)
downloadhqemu-e3936fa574d9fbe241acdc76b5195b048567537e.zip
hqemu-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/pcnet.c')
-rw-r--r--hw/pcnet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/pcnet.c b/hw/pcnet.c
index ae98a20..ee0c98c 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -2039,8 +2039,6 @@ static int pci_pcnet_init(PCIDevice *pci_dev)
sizeof(struct pcnet_RMD), sizeof(struct pcnet_TMD));
#endif
- pci_dev->unregister = pci_pcnet_uninit;
-
pci_conf = pci_dev->config;
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_AMD);
@@ -2170,6 +2168,7 @@ static PCIDeviceInfo pcnet_info = {
.qdev.name = "pcnet",
.qdev.size = sizeof(PCIPCNetState),
.init = pci_pcnet_init,
+ .exit = pci_pcnet_uninit,
};
static void pcnet_register_devices(void)
OpenPOWER on IntegriCloud