aboutsummaryrefslogtreecommitdiff
path: root/hw/milkymist-sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/milkymist-sysctl.c')
-rw-r--r--hw/milkymist-sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/milkymist-sysctl.c b/hw/milkymist-sysctl.c
index 18171f6165..a88548e0aa 100644
--- a/hw/milkymist-sysctl.c
+++ b/hw/milkymist-sysctl.c
@@ -322,9 +322,9 @@ static TypeInfo milkymist_sysctl_info = {
.class_init = milkymist_sysctl_class_init,
};
-static void milkymist_sysctl_register(void)
+static void milkymist_sysctl_register_types(void)
{
type_register_static(&milkymist_sysctl_info);
}
-device_init(milkymist_sysctl_register)
+type_init(milkymist_sysctl_register_types)