diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2011-12-15 22:09:53 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-20 15:44:30 -0600 |
commit | a811f53ccb57911636f7d3d9cb1652d6d49df2c3 (patch) | |
tree | 25b2d241f845d18b8d8576f7ef331dc85e3de133 | |
parent | d1a1be180c0e0299d7b7c1e3e6ed3b7002bdf8e0 (diff) | |
download | qemu-a811f53ccb57911636f7d3d9cb1652d6d49df2c3.zip qemu-a811f53ccb57911636f7d3d9cb1652d6d49df2c3.tar.gz qemu-a811f53ccb57911636f7d3d9cb1652d6d49df2c3.tar.bz2 |
i8259: give ISA device to isa_register_ioport()
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | hw/i8259.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -469,9 +469,9 @@ static int pic_initfn(ISADevice *dev) memory_region_init_io(&s->base_io, &pic_base_ioport_ops, s, "pic", 2); memory_region_init_io(&s->elcr_io, &pic_elcr_ioport_ops, s, "elcr", 1); - isa_register_ioport(NULL, &s->base_io, s->iobase); + isa_register_ioport(dev, &s->base_io, s->iobase); if (s->elcr_addr != -1) { - isa_register_ioport(NULL, &s->elcr_io, s->elcr_addr); + isa_register_ioport(dev, &s->elcr_io, s->elcr_addr); } qdev_init_gpio_out(&dev->qdev, s->int_out, ARRAY_SIZE(s->int_out)); |