summary refs log tree commit diff stats
path: root/hw/sga.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sga.c')
-rw-r--r--hw/sga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/sga.c b/hw/sga.c
index b08e3c5aea..a666349f82 100644
--- a/hw/sga.c
+++ b/hw/sga.c
@@ -55,9 +55,9 @@ static TypeInfo sga_info = {
     .class_init    = sga_class_initfn,
 };
 
-static void sga_register(void)
+static void sga_register_types(void)
 {
     type_register_static(&sga_info);
 }
 
-device_init(sga_register);
+type_init(sga_register_types)