Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- hw/ide/cmd646.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index a73eb9a..296dee6 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -295,8 +295,9 @@ static int pci_cmd646_ide_initfn(PCIDevice *dev) return 0; } -static void pci_cmd646_ide_exitfn(PCIDevice *dev) +static void pci_cmd646_ide_instance_finalize(Object *obj) { + PCIDevice *dev = PCI_DEVICE(obj); PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev); unsigned i; @@ -334,7 +335,6 @@ static void cmd646_ide_class_init(ObjectClass *klass, void *data) PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = pci_cmd646_ide_initfn; - k->exit = pci_cmd646_ide_exitfn; k->vendor_id = PCI_VENDOR_ID_CMD; k->device_id = PCI_DEVICE_ID_CMD_646; k->revision = 0x07; @@ -347,6 +347,7 @@ static const TypeInfo cmd646_ide_info = { .parent = TYPE_PCI_DEVICE, .instance_size = sizeof(PCIIDEState), .class_init = cmd646_ide_class_init, + .instance_finalize = pci_cmd646_ide_instance_finalize, }; static void cmd646_ide_register_types(void) -- 1.8.1.4