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/opencores_eth.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/opencores_eth.c')
-rw-r--r-- | hw/net/opencores_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/opencores_eth.c b/hw/net/opencores_eth.c index a1baa3c9bd..46375574e4 100644 --- a/hw/net/opencores_eth.c +++ b/hw/net/opencores_eth.c @@ -681,11 +681,11 @@ static int sysbus_open_eth_init(SysBusDevice *dev) { OpenEthState *s = DO_UPCAST(OpenEthState, dev, dev); - memory_region_init_io(&s->reg_io, NULL, &open_eth_reg_ops, s, + memory_region_init_io(&s->reg_io, OBJECT(dev), &open_eth_reg_ops, s, "open_eth.regs", 0x54); sysbus_init_mmio(dev, &s->reg_io); - memory_region_init_io(&s->desc_io, NULL, &open_eth_desc_ops, s, + memory_region_init_io(&s->desc_io, OBJECT(dev), &open_eth_desc_ops, s, "open_eth.desc", 0x400); sysbus_init_mmio(dev, &s->desc_io); |