aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/debugexit.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/debugexit.c')
-rw-r--r--hw/misc/debugexit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/debugexit.c b/hw/misc/debugexit.c
index e3a13f045c..d754cf1f2e 100644
--- a/hw/misc/debugexit.c
+++ b/hw/misc/debugexit.c
@@ -40,7 +40,7 @@ static void debug_exit_realizefn(DeviceState *d, Error **errp)
ISADevice *dev = ISA_DEVICE(d);
ISADebugExitState *isa = ISA_DEBUG_EXIT_DEVICE(d);
- memory_region_init_io(&isa->io, NULL, &debug_exit_ops, isa,
+ memory_region_init_io(&isa->io, OBJECT(dev), &debug_exit_ops, isa,
TYPE_ISA_DEBUG_EXIT_DEVICE, isa->iosize);
memory_region_add_subregion(isa_address_space_io(dev),
isa->iobase, &isa->io);