* [Qemu-devel] [PATCH] ioh3420: use pci_config_set_revision()
@ 2010-12-21 11:00 Sebastian Herbszt
0 siblings, 0 replies; only message in thread
From: Sebastian Herbszt @ 2010-12-21 11:00 UTC (permalink / raw)
To: qemu-devel; +Cc: Sebastian Herbszt
Use pci_config_set_revision().
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-21 11:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 11:00 [Qemu-devel] [PATCH] ioh3420: use pci_config_set_revision() Sebastian Herbszt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).