qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] dec_pci: use pci_config_set_revision()
@ 2010-12-21 11:02 Sebastian Herbszt
  0 siblings, 0 replies; only message in thread
From: Sebastian Herbszt @ 2010-12-21 11:02 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/dec_pci.c b/hw/dec_pci.c
index bf88f2a..75dd373 100644
--- a/hw/dec_pci.c
+++ b/hw/dec_pci.c
@@ -110,7 +110,7 @@ static int dec_21154_pci_host_init(PCIDevice *d)
     /* PCI2PCI bridge same values as PearPC - check this */
     pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_DEC);
     pci_config_set_device_id(d->config, PCI_DEVICE_ID_DEC_21154);
-    pci_set_byte(d->config + PCI_REVISION_ID, 0x02);
+    pci_config_set_revision(d->config, 0x02);
     pci_config_set_class(d->config, PCI_CLASS_BRIDGE_PCI);
     return 0;
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-21 11:06 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:02 [Qemu-devel] [PATCH] dec_pci: 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).