From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjwM8-0007WK-BU for qemu-devel@nongnu.org; Tue, 04 Jun 2013 14:53:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjwM7-0007bi-E9 for qemu-devel@nongnu.org; Tue, 04 Jun 2013 14:53:16 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:54331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjwM7-0007b3-7l for qemu-devel@nongnu.org; Tue, 04 Jun 2013 14:53:15 -0400 Received: by mail-we0-f179.google.com with SMTP id w59so534222wes.24 for ; Tue, 04 Jun 2013 11:53:14 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 4 Jun 2013 20:52:09 +0200 Message-Id: <1370371954-8479-15-git-send-email-pbonzini@redhat.com> In-Reply-To: <1370371954-8479-1-git-send-email-pbonzini@redhat.com> References: <1370371954-8479-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 14/39] ide/via: use instance_finalize instead of exit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mst@redhat.com Signed-off-by: Paolo Bonzini --- hw/ide/via.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/ide/via.c b/hw/ide/via.c index 5fe053c..58070df 100644 --- a/hw/ide/via.c +++ b/hw/ide/via.c @@ -190,8 +190,9 @@ static int vt82c686b_ide_initfn(PCIDevice *dev) return 0; } -static void vt82c686b_ide_exitfn(PCIDevice *dev) +static void vt82c686b_ide_instance_finalize(Object *obj) { + PCIDevice *dev = PCI_DEVICE(obj); PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev); unsigned i; @@ -218,7 +219,6 @@ static void via_ide_class_init(ObjectClass *klass, void *data) PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = vt82c686b_ide_initfn; - k->exit = vt82c686b_ide_exitfn; k->vendor_id = PCI_VENDOR_ID_VIA; k->device_id = PCI_DEVICE_ID_VIA_IDE; k->revision = 0x06; @@ -231,6 +231,7 @@ static const TypeInfo via_ide_info = { .parent = TYPE_PCI_DEVICE, .instance_size = sizeof(PCIIDEState), .class_init = via_ide_class_init, + .instance_finalize = vt82c686b_ide_instance_finalize, }; static void via_ide_register_types(void) -- 1.8.1.4