aboutsummaryrefslogtreecommitdiff
path: root/hw/rtc/sun4v-rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/rtc/sun4v-rtc.c')
-rw-r--r--hw/rtc/sun4v-rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rtc/sun4v-rtc.c b/hw/rtc/sun4v-rtc.c
index ed1c108..52caea8 100644
--- a/hw/rtc/sun4v-rtc.c
+++ b/hw/rtc/sun4v-rtc.c
@@ -59,7 +59,7 @@ void sun4v_rtc_init(hwaddr addr)
dev = qdev_new(TYPE_SUN4V_RTC);
s = SYS_BUS_DEVICE(dev);
- qdev_realize_and_unref(dev, NULL, &error_fatal);
+ sysbus_realize_and_unref(s, &error_fatal);
sysbus_mmio_map(s, 0, addr);
}