From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRMio-0000WY-GF for qemu-devel@nongnu.org; Wed, 11 Jan 2017 12:30:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRMin-0006A8-Lx for qemu-devel@nongnu.org; Wed, 11 Jan 2017 12:30:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43028) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRMin-00069q-Gq for qemu-devel@nongnu.org; Wed, 11 Jan 2017 12:30:01 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B09DD7DCF6 for ; Wed, 11 Jan 2017 17:30:01 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 11 Jan 2017 18:29:18 +0100 Message-Id: <20170111172956.11255-3-marcandre.lureau@redhat.com> In-Reply-To: <20170111172956.11255-1-marcandre.lureau@redhat.com> References: <20170111172956.11255-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 02/40] baum: convert to finalize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, eblake@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Signed-off-by: Marc-Andr=C3=A9 Lureau --- backends/baum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/baum.c b/backends/baum.c index 0f418ed358..39c9365024 100644 --- a/backends/baum.c +++ b/backends/baum.c @@ -616,9 +616,9 @@ static void baum_chr_read(void *opaque) } } =20 -static void baum_chr_free(Chardev *chr) +static void char_braille_finalize(Object *obj) { - BaumChardev *baum =3D BAUM_CHARDEV(chr); + BaumChardev *baum =3D BAUM_CHARDEV(obj); =20 timer_free(baum->cellCount_timer); if (baum->brlapi) { @@ -659,13 +659,13 @@ static void char_braille_class_init(ObjectClass *oc= , void *data) cc->open =3D baum_chr_open; cc->chr_write =3D baum_chr_write; cc->chr_accept_input =3D baum_chr_accept_input; - cc->chr_free =3D baum_chr_free; } =20 static const TypeInfo char_braille_type_info =3D { .name =3D TYPE_CHARDEV_BRAILLE, .parent =3D TYPE_CHARDEV, .instance_size =3D sizeof(BaumChardev), + .instance_finalize =3D char_braille_finalize, .class_init =3D char_braille_class_init, }; =20 --=20 2.11.0