Commit e96ebf49 authored by Marc-André Lureau's avatar Marc-André Lureau

baum: convert to finalize

Signed-off-by: 's avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: 's avatarEric Blake <eblake@redhat.com>
parent 18c508ac
......@@ -616,9 +616,9 @@ static void baum_chr_read(void *opaque)
}
}
static void baum_chr_free(Chardev *chr)
static void char_braille_finalize(Object *obj)
{
BaumChardev *baum = BAUM_CHARDEV(chr);
BaumChardev *baum = BAUM_CHARDEV(obj);
timer_free(baum->cellCount_timer);
if (baum->brlapi) {
......@@ -659,13 +659,13 @@ static void char_braille_class_init(ObjectClass *oc, void *data)
cc->open = baum_chr_open;
cc->chr_write = baum_chr_write;
cc->chr_accept_input = baum_chr_accept_input;
cc->chr_free = baum_chr_free;
}
static const TypeInfo char_braille_type_info = {
.name = TYPE_CHARDEV_BRAILLE,
.parent = TYPE_CHARDEV,
.instance_size = sizeof(BaumChardev),
.instance_finalize = char_braille_finalize,
.class_init = char_braille_class_init,
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment