@@ -3681,12 +3681,6 @@ static void register_types(void)
|| defined(__FreeBSD_kernel__)
register_char_driver("parport", qemu_chr_open_pp);
#endif
-#ifdef CONFIG_SPICE
- register_char_driver("spicevmc", qemu_chr_open_spice);
-#if SPICE_SERVER_VERSION >= 0x000c02
- register_char_driver("spiceport", qemu_chr_open_spice_port);
-#endif
-#endif
}
type_init(register_types);
@@ -307,3 +307,13 @@ void qemu_spice_register_ports(void)
}
}
#endif
+
+static void register_types(void)
+{
+ register_char_driver("spicevmc", qemu_chr_open_spice);
+#if SPICE_SERVER_VERSION >= 0x000c02
+ register_char_driver("spiceport", qemu_chr_open_spice_port);
+#endif
+}
+
+type_init(register_types);
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> --- qemu-char.c | 6 ------ spice-qemu-char.c | 10 ++++++++++ 2 files changed, 10 insertions(+), 6 deletions(-)