patch-2.4.23 linux-2.4.23/drivers/usb/host/ehci-hcd.c

Next file: linux-2.4.23/drivers/usb/host/ehci-q.c
Previous file: linux-2.4.23/drivers/usb/host/ehci-dbg.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/usb/host/ehci-hcd.c linux-2.4.23/drivers/usb/host/ehci-hcd.c
@@ -333,7 +333,8 @@
 	spin_lock_init (&ehci->lock);
 
 	ehci->caps = (struct ehci_caps *) hcd->regs;
-	ehci->regs = (struct ehci_regs *) (hcd->regs + ehci->caps->length);
+	ehci->regs = (struct ehci_regs *) (hcd->regs +
+				readb (&ehci->caps->length));
 	dbg_hcs_params (ehci, "ehci_start");
 	dbg_hcc_params (ehci, "ehci_start");
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)