* [Qemu-devel] [PATCH] apb_pci: use pci_config_set_revision()
@ 2010-12-21 11:05 Sebastian Herbszt
0 siblings, 0 replies; only message in thread
From: Sebastian Herbszt @ 2010-12-21 11:05 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/apb_pci.c b/hw/apb_pci.c
index 84e9af7..97b3032 100644
--- a/hw/apb_pci.c
+++ b/hw/apb_pci.c
@@ -321,7 +321,7 @@ static int apb_pci_bridge_initfn(PCIDevice *dev)
pci_set_word(dev->config + PCI_STATUS,
PCI_STATUS_FAST_BACK | PCI_STATUS_66MHZ |
PCI_STATUS_DEVSEL_MEDIUM);
- pci_set_byte(dev->config + PCI_REVISION_ID, 0x11);
+ pci_config_set_revision(dev->config, 0x11);
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:05 [Qemu-devel] [PATCH] apb_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).