Patchwork [2/3] usb: Use defines for serial bus release number register for UHCI

login
register
mail settings
Submitter Brad Hards
Date June 2, 2011, 1:18 a.m.
Message ID <1306977528-20429-3-git-send-email-bradh@frogmouth.net>
Download mbox | patch
Permalink /patch/98318/
State New
Headers show

Comments

Brad Hards - June 2, 2011, 1:18 a.m.
Signed-off-by: Brad Hards <bradh@frogmouth.net>
---
 hw/usb-uhci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c
index c0de05b..d9c86ad 100644
--- a/hw/usb-uhci.c
+++ b/hw/usb-uhci.c
@@ -1098,7 +1098,7 @@  static int usb_uhci_common_initfn(UHCIState *s)
     pci_config_set_class(pci_conf, PCI_CLASS_SERIAL_USB);
     /* TODO: reset value should be 0. */
     pci_conf[PCI_INTERRUPT_PIN] = 4; // interrupt pin 3
-    pci_conf[0x60] = 0x10; // release number
+    pci_conf[USB_SBRN] = USB_RELEASE_1; // release number
 
     usb_bus_new(&s->bus, &s->dev.qdev);
     for(i = 0; i < NB_PORTS; i++) {