Patchwork dec_pci: use pci_config_set_revision()

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

Comments

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

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

Patch

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