Patchwork ioh3420: use pci_config_set_revision()

login
register
mail settings
Submitter Sebastian Herbszt
Date Dec. 21, 2010, 11 a.m.
Message ID <1292929225$3707@local>
Download mbox | patch
Permalink /patch/76278/
State New
Headers show

Comments

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

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

Patch

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);