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/lance.c | |
parent | 3c16154210ce6277bee553e72f7c7b2b2fecefbf (diff) | |
download | qemu-eedfac6f38b2ba8be827088cd3facd19d21af1e1.zip qemu-eedfac6f38b2ba8be827088cd3facd19d21af1e1.tar.gz qemu-eedfac6f38b2ba8be827088cd3facd19d21af1e1.tar.bz2 |
hw/n*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/net/lance.c')
-rw-r--r-- | hw/net/lance.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/net/lance.c b/hw/net/lance.c index 1d3999d..98bcdfc 100644 --- a/hw/net/lance.c +++ b/hw/net/lance.c @@ -117,7 +117,8 @@ static int lance_init(SysBusDevice *dev) SysBusPCNetState *d = FROM_SYSBUS(SysBusPCNetState, dev); PCNetState *s = &d->state; - memory_region_init_io(&s->mmio, NULL, &lance_mem_ops, d, "lance-mmio", 4); + memory_region_init_io(&s->mmio, OBJECT(d), &lance_mem_ops, d, + "lance-mmio", 4); qdev_init_gpio_in(&dev->qdev, parent_lance_reset, 1); |