apb_pci: use pci_config_set_revision()

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

Details

Message ID 1292929538$3002@local
State New
Headers show

Commit Message

Sebastian Herbszt Dec. 21, 2010, 11:05 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/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;
 }