aboutsummaryrefslogtreecommitdiff
path: root/hw/core/empty_slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/core/empty_slot.c')
-rw-r--r--hw/core/empty_slot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/empty_slot.c b/hw/core/empty_slot.c
index 5234a4ddc6..e6249912c5 100644
--- a/hw/core/empty_slot.c
+++ b/hw/core/empty_slot.c
@@ -70,7 +70,7 @@ static int empty_slot_init1(SysBusDevice *dev)
{
EmptySlot *s = FROM_SYSBUS(EmptySlot, dev);
- memory_region_init_io(&s->iomem, &empty_slot_ops, s,
+ memory_region_init_io(&s->iomem, OBJECT(s), &empty_slot_ops, s,
"empty-slot", s->size);
sysbus_init_mmio(dev, &s->iomem);
return 0;