@@ -841,7 +841,7 @@ static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus,
pci_config_alloc(pci_dev);
pci_set_word(pci_dev->config + PCI_VENDOR_ID, pc->vendor_id);
- pci_config_set_device_id(pci_dev->config, pc->device_id);
+ pci_set_word(pci_dev->config + PCI_DEVICE_ID, pc->device_id);
pci_config_set_revision(pci_dev->config, pc->revision);
pci_config_set_class(pci_dev->config, pc->class_id);
@@ -462,12 +462,6 @@ pci_get_quad(const uint8_t *config)
}
static inline void
-pci_config_set_device_id(uint8_t *pci_config, uint16_t val)
-{
- pci_set_word(&pci_config[PCI_DEVICE_ID], val);
-}
-
-static inline void
pci_config_set_revision(uint8_t *pci_config, uint8_t val)
{
pci_set_byte(&pci_config[PCI_REVISION_ID], val);
See also commit 'pci: remove pci_config_set_vendor_id'. Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- hw/pci/pci.c | 2 +- include/hw/pci/pci.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-)