aboutsummaryrefslogtreecommitdiff
path: root/hw/net/smc91c111.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
commiteedfac6f38b2ba8be827088cd3facd19d21af1e1 (patch)
tree48800afbf7e7989d28ed8d52f7be67f4d89f5574 /hw/net/smc91c111.c
parent3c16154210ce6277bee553e72f7c7b2b2fecefbf (diff)
hw/n*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/net/smc91c111.c')
-rw-r--r--hw/net/smc91c111.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/smc91c111.c b/hw/net/smc91c111.c
index 642970951b..c49e37a8b0 100644
--- a/hw/net/smc91c111.c
+++ b/hw/net/smc91c111.c
@@ -747,7 +747,7 @@ static NetClientInfo net_smc91c111_info = {
static int smc91c111_init1(SysBusDevice *dev)
{
smc91c111_state *s = FROM_SYSBUS(smc91c111_state, dev);
- memory_region_init_io(&s->mmio, NULL, &smc91c111_mem_ops, s,
+ memory_region_init_io(&s->mmio, OBJECT(s), &smc91c111_mem_ops, s,
"smc91c111-mmio", 16);
sysbus_init_mmio(dev, &s->mmio);
sysbus_init_irq(dev, &s->irq);