aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/debugexit.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-06-06 21:25:08 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-04 17:42:48 +0200
commit3c16154210ce6277bee553e72f7c7b2b2fecefbf (patch)
tree064740d1798b5970dba5160bea48b0a59f8f02dc /hw/misc/debugexit.c
parent1437c94b2689c2010362f84d14f14feaa1d8dba3 (diff)
hw/m*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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);