diff options
Diffstat (limited to 'hw/isa/apm.c')
-rw-r--r-- | hw/isa/apm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/isa/apm.c b/hw/isa/apm.c index daed6f1b51..f97e7a0c24 100644 --- a/hw/isa/apm.c +++ b/hw/isa/apm.c @@ -96,7 +96,7 @@ void apm_init(PCIDevice *dev, APMState *apm, apm_ctrl_changed_t callback, apm->arg = arg; /* ioport 0xb2, 0xb3 */ - memory_region_init_io(&apm->io, NULL, &apm_ops, apm, "apm-io", 2); + memory_region_init_io(&apm->io, OBJECT(dev), &apm_ops, apm, "apm-io", 2); memory_region_add_subregion(pci_address_space_io(dev), APM_CNT_IOPORT, &apm->io); } |