aboutsummaryrefslogtreecommitdiff
path: root/hw/kvm/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/kvm/clock.c')
-rw-r--r--hw/kvm/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kvm/clock.c b/hw/kvm/clock.c
index d5a53869b3..2157340326 100644
--- a/hw/kvm/clock.c
+++ b/hw/kvm/clock.c
@@ -119,11 +119,11 @@ void kvmclock_create(void)
}
}
-static void kvmclock_register_device(void)
+static void kvmclock_register_types(void)
{
if (kvm_enabled()) {
type_register_static(&kvmclock_info);
}
}
-device_init(kvmclock_register_device);
+type_init(kvmclock_register_types)