mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -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
|
@ -1129,7 +1129,6 @@ static int pci_e1000_init(PCIDevice *pci_dev)
|
|||
qemu_format_nic_info_str(d->vc, macaddr);
|
||||
|
||||
register_savevm(info_str, -1, 2, nic_save, nic_load, d);
|
||||
d->dev.unregister = pci_e1000_uninit;
|
||||
qemu_register_reset(e1000_reset, d);
|
||||
e1000_reset(d);
|
||||
return 0;
|
||||
|
@ -1139,6 +1138,7 @@ static PCIDeviceInfo e1000_info = {
|
|||
.qdev.name = "e1000",
|
||||
.qdev.size = sizeof(E1000State),
|
||||
.init = pci_e1000_init,
|
||||
.exit = pci_e1000_uninit,
|
||||
};
|
||||
|
||||
static void e1000_register_devices(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue