aboutsummaryrefslogtreecommitdiff
path: root/hw/empty_slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/empty_slot.c')
-rw-r--r--hw/empty_slot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/empty_slot.c b/hw/empty_slot.c
index 3cb6ccb..d7b5497 100644
--- a/hw/empty_slot.c
+++ b/hw/empty_slot.c
@@ -56,7 +56,7 @@ void empty_slot_init(hwaddr addr, uint64_t slot_size)
EmptySlot *e;
dev = qdev_create(NULL, "empty_slot");
- s = sysbus_from_qdev(dev);
+ s = SYS_BUS_DEVICE(dev);
e = FROM_SYSBUS(EmptySlot, s);
e->size = slot_size;