All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] rtl8139: use pci_config_set_revision()
@ 2010-12-20 21:36 Sebastian Herbszt
  0 siblings, 0 replies; only message in thread
From: Sebastian Herbszt @ 2010-12-20 21:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: Sebastian Herbszt

Use pci_config_set_revision().

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

diff --git a/hw/rtl8139.c b/hw/rtl8139.c
index a8aed89..6407ce0 100644
--- a/hw/rtl8139.c
+++ b/hw/rtl8139.c
@@ -3346,7 +3346,7 @@ static int pci_rtl8139_init(PCIDevice *dev)
     pci_conf = s->dev.config;
     pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_REALTEK);
     pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_REALTEK_8139);
-    pci_conf[PCI_REVISION_ID] = RTL8139_PCI_REVID; /* >=0x20 is for 8139C+ */
+    pci_config_set_revision(pci_conf, RTL8139_PCI_REVID); /* >=0x20 is for 8139C+ */
     pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET);
     pci_conf[PCI_INTERRUPT_PIN] = 1;    /* interrupt pin 0 */
     /* TODO: start of capability list, but no capability

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-20 21:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-20 21:36 [Qemu-devel] [PATCH] rtl8139: use pci_config_set_revision() Sebastian Herbszt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.