summary refs log tree commit diff stats
path: root/hw/sensor/tmp421.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sensor/tmp421.c')
-rw-r--r--hw/sensor/tmp421.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sensor/tmp421.c b/hw/sensor/tmp421.c
index b6f0b62ab1..82e604279c 100644
--- a/hw/sensor/tmp421.c
+++ b/hw/sensor/tmp421.c
@@ -384,7 +384,7 @@ static void tmp421_register_types(void)
             .class_init = tmp421_class_init,
             .class_data = (void *) &devices[i],
         };
-        type_register(&ti);
+        type_register_static(&ti);
     }
 }