diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-06 21:25:08 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:48 +0200 |
commit | eedfac6f38b2ba8be827088cd3facd19d21af1e1 (patch) | |
tree | 48800afbf7e7989d28ed8d52f7be67f4d89f5574 /hw/net/lan9118.c | |
parent | 3c16154210ce6277bee553e72f7c7b2b2fecefbf (diff) |
hw/n*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/net/lan9118.c')
-rw-r--r-- | hw/net/lan9118.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c index ce68399116..3323f48d97 100644 --- a/hw/net/lan9118.c +++ b/hw/net/lan9118.c @@ -1328,7 +1328,8 @@ static int lan9118_init1(SysBusDevice *dev) const MemoryRegionOps *mem_ops = s->mode_16bit ? &lan9118_16bit_mem_ops : &lan9118_mem_ops; - memory_region_init_io(&s->mmio, NULL, mem_ops, s, "lan9118-mmio", 0x100); + memory_region_init_io(&s->mmio, OBJECT(dev), mem_ops, s, + "lan9118-mmio", 0x100); sysbus_init_mmio(dev, &s->mmio); sysbus_init_irq(dev, &s->irq); qemu_macaddr_default_if_unset(&s->conf.macaddr); |