diff options
Diffstat (limited to 'hw/vt82c686.c')
-rw-r--r-- | hw/vt82c686.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/vt82c686.c b/hw/vt82c686.c index 99e6b2f9a9..5016e954d3 100644 --- a/hw/vt82c686.c +++ b/hw/vt82c686.c @@ -351,8 +351,8 @@ static int vt82c686b_pm_initfn(PCIDevice *dev) pci_conf[0x90] = s->smb_io_base | 1; pci_conf[0x91] = s->smb_io_base >> 8; pci_conf[0xd2] = 0x90; - register_ioport_write(s->smb_io_base, 0xf, 1, smb_ioport_writeb, &s->smb); - register_ioport_read(s->smb_io_base, 0xf, 1, smb_ioport_readb, &s->smb); + pm_smbus_init(&s->dev.qdev, &s->smb); + memory_region_add_subregion(get_system_io(), s->smb_io_base, &s->smb.io); apm_init(&s->apm, NULL, s); @@ -364,8 +364,6 @@ static int vt82c686b_pm_initfn(PCIDevice *dev) acpi_pm1_evt_init(&s->ar, pm_tmr_timer, &s->io); acpi_pm1_cnt_init(&s->ar, &s->io); - pm_smbus_init(&s->dev.qdev, &s->smb); - return 0; } |