usb: adding the correct offset to the interrupt table of the OHCI controller
authorReto Achermann <reto.achermann@inf.ethz.ch>
Fri, 22 May 2015 08:51:01 +0000 (10:51 +0200)
committerReto Achermann <reto.achermann@inf.ethz.ch>
Fri, 22 May 2015 08:51:01 +0000 (10:51 +0200)
     closes T99

Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>

usr/drivers/usb/usb_manager/controller/ohci/usb_ohci.c

index 84571e8..a19d2e3 100644 (file)
@@ -244,7 +244,7 @@ usb_error_t usb_ohci_init(usb_ohci_hc_t *hc, uintptr_t base)
      */\r
     hc->hcca = usb_ohci_hcca_alloc();\r
 \r
-    for (uint16_t i = 0; i < USB_OHCI_NO_EP_DESCRIPTORS; i++) {\r
+    for (uint16_t i = 0; i < USB_OHCI_NO_IRQS; i++) {\r
         hc->hcca->hcca_interrupt_table[i] = hc->qh_intr_last[i\r
                 | USB_OHCI_NO_EP_DESCRIPTORS / 2]->ed_self;\r
     }\r