diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-25 15:04:35 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:46 +0200 |
commit | dcb117bfda5af6f6ceb7231778d36d8bce4aee93 (patch) | |
tree | a0b2941c5b06f8bbdb4412511f6f647899469453 /hw/net/ne2000-isa.c | |
parent | 42e038fe918f4eecdd84ef9ee406bba1deb15cec (diff) |
ne2000: pass device to ne2000_setup_io, use it as owner
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/net/ne2000-isa.c')
-rw-r--r-- | hw/net/ne2000-isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c index 9232abd466..e3c8076382 100644 --- a/hw/net/ne2000-isa.c +++ b/hw/net/ne2000-isa.c @@ -72,7 +72,7 @@ static void isa_ne2000_realizefn(DeviceState *dev, Error **errp) ISANE2000State *isa = ISA_NE2000(dev); NE2000State *s = &isa->ne2000; - ne2000_setup_io(s, 0x20); + ne2000_setup_io(s, DEVICE(isadev), 0x20); isa_register_ioport(isadev, &s->io, isa->iobase); isa_init_irq(isadev, &s->irq, isa->isairq); |