apb_pci: use pci_config_set_revision()
PATCH 1/1 apb_pci: use pci_config_set_revision()
Use pci_config_set_revision().
Signed-off-by Sebastian Herbszt <[email protected]>
hw/apb_pci.c +1 -1
@@ -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 ; }