X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=backends%2Fbaum.c;h=9063aea2cf7681d8b102134623f772b10e46e8e1;hb=6e72a00f909dcd093fbdd1faa2b3c8caa1697a6c;hp=37ccca8211078e208ca0cce711fbcad62fc383a0;hpb=159b6e9f144c7afdf3ad95c29d1fede9626fa8b1;p=qemu.git diff --git a/backends/baum.c b/backends/baum.c index 37ccca821..9063aea2c 100644 --- a/backends/baum.c +++ b/backends/baum.c @@ -25,7 +25,6 @@ #include "char/char.h" #include "qemu/timer.h" #include "hw/usb.h" -#include "char/baum.h" #include #include #include @@ -562,7 +561,7 @@ static void baum_close(struct CharDriverState *chr) g_free(baum); } -CharDriverState *chr_baum_init(QemuOpts *opts) +static CharDriverState *chr_baum_init(QemuOpts *opts) { BaumDriverState *baum; CharDriverState *chr; @@ -625,3 +624,10 @@ fail_handle: g_free(baum); return NULL; } + +static void register_types(void) +{ + register_char_driver("braille", chr_baum_init); +} + +type_init(register_types);