[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/39] ide/piix: use instance_finalize instead of ex
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 13/39] ide/piix: use instance_finalize instead of exit |
Date: |
Tue, 4 Jun 2013 20:52:08 +0200 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/ide/piix.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
index bf2856f..a0550c6 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -201,8 +201,9 @@ PCIDevice *pci_piix3_xen_ide_init(PCIBus *bus, DriveInfo
**hd_table, int devfn)
return dev;
}
-static void pci_piix_ide_exitfn(PCIDevice *dev)
+static void pci_piix_ide_instance_finalize(Object *obj)
{
+ PCIDevice *dev = PCI_DEVICE(obj);
PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev);
unsigned i;
@@ -244,7 +245,6 @@ static void piix3_ide_class_init(ObjectClass *klass, void
*data)
k->no_hotplug = 1;
k->init = pci_piix_ide_initfn;
- k->exit = pci_piix_ide_exitfn;
k->vendor_id = PCI_VENDOR_ID_INTEL;
k->device_id = PCI_DEVICE_ID_INTEL_82371SB_1;
k->class_id = PCI_CLASS_STORAGE_IDE;
@@ -256,6 +256,7 @@ static const TypeInfo piix3_ide_info = {
.parent = TYPE_PCI_DEVICE,
.instance_size = sizeof(PCIIDEState),
.class_init = piix3_ide_class_init,
+ .instance_finalize = pci_piix_ide_instance_finalize,
};
static void piix3_ide_xen_class_init(ObjectClass *klass, void *data)
@@ -276,6 +277,7 @@ static const TypeInfo piix3_ide_xen_info = {
.parent = TYPE_PCI_DEVICE,
.instance_size = sizeof(PCIIDEState),
.class_init = piix3_ide_xen_class_init,
+ .instance_finalize = pci_piix_ide_instance_finalize,
};
static void piix4_ide_class_init(ObjectClass *klass, void *data)
@@ -285,7 +287,6 @@ static void piix4_ide_class_init(ObjectClass *klass, void
*data)
k->no_hotplug = 1;
k->init = pci_piix_ide_initfn;
- k->exit = pci_piix_ide_exitfn;
k->vendor_id = PCI_VENDOR_ID_INTEL;
k->device_id = PCI_DEVICE_ID_INTEL_82371AB;
k->class_id = PCI_CLASS_STORAGE_IDE;
@@ -297,6 +298,7 @@ static const TypeInfo piix4_ide_info = {
.parent = TYPE_PCI_DEVICE,
.instance_size = sizeof(PCIIDEState),
.class_init = piix4_ide_class_init,
+ .instance_finalize = pci_piix_ide_instance_finalize,
};
static void piix_ide_register_types(void)
--
1.8.1.4
- [Qemu-devel] [PATCH 09/39] pci-assign: split exit and instance_finalize, (continued)
- [Qemu-devel] [PATCH 09/39] pci-assign: split exit and instance_finalize, Paolo Bonzini, 2013/06/04
- [Qemu-devel] [PATCH 10/39] ahci: split exit and instance_finalize, Paolo Bonzini, 2013/06/04
- [Qemu-devel] [PATCH 11/39] msix: split msix_free from msix_uninit, Paolo Bonzini, 2013/06/04
- Re: [Qemu-devel] [PATCH 11/39] msix: split msix_free from msix_uninit, Michael S. Tsirkin, 2013/06/04
- Re: [Qemu-devel] [PATCH 11/39] msix: split msix_free from msix_uninit, Paolo Bonzini, 2013/06/04
- Re: [Qemu-devel] [PATCH 11/39] msix: split msix_free from msix_uninit, Michael S. Tsirkin, 2013/06/05
- Re: [Qemu-devel] [PATCH 11/39] msix: split msix_free from msix_uninit, Paolo Bonzini, 2013/06/05
- Re: [Qemu-devel] [PATCH 11/39] msix: split msix_free from msix_uninit, Michael S. Tsirkin, 2013/06/05
- Re: [Qemu-devel] [PATCH 11/39] msix: split msix_free from msix_uninit, Paolo Bonzini, 2013/06/06
[Qemu-devel] [PATCH 12/39] cmd646: use instance_finalize instead of exit, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 13/39] ide/piix: use instance_finalize instead of exit,
Paolo Bonzini <=
[Qemu-devel] [PATCH 14/39] ide/via: use instance_finalize instead of exit, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 15/39] ivshmem: split exit and instance_finalize, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 16/39] pci-testdev: use instance_finalize instead of exit, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 17/39] vfio: split exit and instance_finalize, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 18/39] e1000: use instance_finalize instead of exit, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 19/39] eepro100: use instance_finalize instead of exit, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 20/39] ne2000: use instance_finalize instead of exit, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 21/39] pcnet: use instance_finalize instead of exit, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 22/39] rtl8139: use instance_finalize instead of exit, Paolo Bonzini, 2013/06/04
[Qemu-devel] [PATCH 23/39] vmxnet3: split exit and instance_finalize, Paolo Bonzini, 2013/06/04