summaryrefslogtreecommitdiff
path: root/hw/ne2000-isa.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-08-15 15:42:46 -0700
committerAvi Kivity <avi@redhat.com>2011-10-11 15:57:10 +0200
commita502852030226edb06ff581998fdf7fae746a88c (patch)
tree5351943252e06969b990651acbd4747bced8c1e5 /hw/ne2000-isa.c
parentb2c5009b45f3d61ee3fe793edfcc5e231e73c7e4 (diff)
downloadqemu-a502852030226edb06ff581998fdf7fae746a88c.zip
ne2000: Convert to isa_register_ioport
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/ne2000-isa.c')
-rw-r--r--hw/ne2000-isa.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c
index 756ed5ca46..11ffee7d7c 100644
--- a/hw/ne2000-isa.c
+++ b/hw/ne2000-isa.c
@@ -68,10 +68,7 @@ static int isa_ne2000_initfn(ISADevice *dev)
NE2000State *s = &isa->ne2000;
ne2000_setup_io(s, 0x20);
- isa_init_ioport_range(dev, isa->iobase, 16);
- isa_init_ioport_range(dev, isa->iobase + 0x10, 2);
- isa_init_ioport(dev, isa->iobase + 0x1f);
- memory_region_add_subregion(get_system_io(), isa->iobase, &s->io);
+ isa_register_ioport(dev, &s->io, isa->iobase);
isa_init_irq(dev, &s->irq, isa->isairq);