ioh3420: use pci_config_set_revision()

Submitted by Sebastian Herbszt on Dec. 21, 2010, 11 a.m.

Details

Message ID 1292929225$3707@local
State New
Headers show

Commit Message

Sebastian Herbszt Dec. 21, 2010, 11 a.m.
Use pci_config_set_revision().

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>

Patch hide | download patch | download mbox

diff --git a/hw/ioh3420.c b/hw/ioh3420.c
index 95adf09..25ed2eb 100644
--- a/hw/ioh3420.c
+++ b/hw/ioh3420.c
@@ -104,7 +104,7 @@  static int ioh3420_initfn(PCIDevice *d)
         return rc;
     }
 
-    d->config[PCI_REVISION_ID] = PCI_DEVICE_ID_IOH_REV;
+    pci_config_set_revision(d->config, PCI_DEVICE_ID_IOH_REV);
     pcie_port_init_reg(d);
 
     pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_INTEL);