Use NUM_QH, not NUM_TD to specify allocation size.
Signed-off-by: Andrey Smirnov <[email protected]>
---
drivers/usb/host/ehci-hcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index b336164f6..f3be177ce 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1325,7 +1325,7 @@ struct ehci_host *ehci_register(struct device_d *dev,
struct ehci_data *data)
ehci->init = data->init;
ehci->post_init = data->post_init;
- ehci->qh_list = dma_alloc_coherent(sizeof(struct QH) * NUM_TD,
+ ehci->qh_list = dma_alloc_coherent(sizeof(struct QH) * NUM_QH,
DMA_ADDRESS_BROKEN);
ehci->periodic_queue = dma_alloc_coherent(sizeof(struct QH),
DMA_ADDRESS_BROKEN);
--
2.21.0
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox