mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
a36a344dcd
commit
e3936fa574
8 changed files with 13 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue