Message ID | 12d8d0db7c7c39330a6f47692d4fd777404ba151.1370931825.git.peter.crosthwaite@xilinx.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/i2c/smbus_ich9.c b/hw/i2c/smbus_ich9.c index ca22978..f87343f 100644 --- a/hw/i2c/smbus_ich9.c +++ b/hw/i2c/smbus_ich9.c @@ -82,7 +82,7 @@ static int ich9_smbus_initfn(PCIDevice *d) pci_set_byte(d->config + ICH9_SMB_HOSTC, 0); /* TODO bar0, bar1: 64bit BAR support*/ - pm_smbus_init(&d->qdev, &s->smb); + pm_smbus_init(DEVICE(d), &s->smb); pci_register_bar(d, ICH9_SMB_SMB_BASE_BAR, PCI_BASE_ADDRESS_SPACE_IO, &s->smb.io); return 0;