| Submitter | Sebastian Herbszt |
|---|---|
| Date | Dec. 21, 2010, 11:05 a.m. |
| Message ID | <1292929538$3002@local> |
| Download | mbox | patch |
| Permalink | /patch/76276/ |
| State | New |
| Headers | show |
Comments
Patch
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; }
Use pci_config_set_revision(). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>