qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] pcnet-pci: use pci_config_set_revision()


From: Sebastian Herbszt
Subject: [Qemu-devel] [PATCH] pcnet-pci: use pci_config_set_revision()
Date: Mon, 20 Dec 2010 22:40:41 +0100

Use pci_config_set_revision().

Signed-off-by: Sebastian Herbszt <address@hidden>

diff --git a/hw/pcnet-pci.c b/hw/pcnet-pci.c
index 339a401..c9811e2 100644
--- a/hw/pcnet-pci.c
+++ b/hw/pcnet-pci.c
@@ -282,7 +282,7 @@ static int pci_pcnet_init(PCIDevice *pci_dev)
     pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_AMD_LANCE);
     pci_set_word(pci_conf + PCI_STATUS,
                  PCI_STATUS_FAST_BACK | PCI_STATUS_DEVSEL_MEDIUM);
-    pci_conf[PCI_REVISION_ID] = 0x10;
+    pci_config_set_revision(pci_conf, 0x10);
     pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET);
 
     pci_set_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID, 0x0);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]