aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/empty_slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/empty_slot.c')
-rw-r--r--hw/misc/empty_slot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/empty_slot.c b/hw/misc/empty_slot.c
index eb2aec731e..9a011b1c11 100644
--- a/hw/misc/empty_slot.c
+++ b/hw/misc/empty_slot.c
@@ -60,7 +60,7 @@ void empty_slot_init(const char *name, hwaddr addr, uint64_t slot_size)
dev = qdev_new(TYPE_EMPTY_SLOT);
qdev_prop_set_uint64(dev, "size", slot_size);
- qdev_realize_and_unref(dev, NULL, &error_fatal);
+ sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
sysbus_mmio_map_overlap(SYS_BUS_DEVICE(dev), 0, addr, -10000);
}