qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] usb-uhci: use pci_config_set_revision()


From: Sebastian Herbszt
Subject: [Qemu-devel] [PATCH] usb-uhci: use pci_config_set_revision()
Date: Mon, 20 Dec 2010 22:45:25 +0100

Use pci_config_set_revision().

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

diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c
index b9b822f..5b3bf21 100644
--- a/hw/usb-uhci.c
+++ b/hw/usb-uhci.c
@@ -1106,7 +1106,7 @@ static int usb_uhci_common_initfn(UHCIState *s)
     uint8_t *pci_conf = s->dev.config;
     int i;
 
-    pci_conf[PCI_REVISION_ID] = 0x01; // revision number
+    pci_config_set_revision(pci_conf, 0x01); // revision number
     pci_conf[PCI_CLASS_PROG] = 0x00;
     pci_config_set_class(pci_conf, PCI_CLASS_SERIAL_USB);
     /* TODO: reset value should be 0. */




reply via email to

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