summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hcd.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-09-22 14:41:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-24 18:38:22 +0200
commiteacd5e7cc3af3eb044f997d6bd3aa69c0ae7c772 (patch)
tree30a848dec72fde92fdcacdb767062475bcae9e02 /drivers/usb/host/ehci-hcd.c
parent78182d5d4f8532ab1018c99a7271005d9bb1bad2 (diff)
downloadbarebox-eacd5e7cc3af3eb044f997d6bd3aa69c0ae7c772.tar.gz
barebox-eacd5e7cc3af3eb044f997d6bd3aa69c0ae7c772.tar.xz
usb: make usb devices children of the corresponding host
To be able to find usb devices in the hardware tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r--drivers/usb/host/ehci-hcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index f44f836357..cb6a592466 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -883,6 +883,7 @@ int ehci_register(struct device_d *dev, struct ehci_data *data)
ehci->qh_list = dma_alloc_coherent(sizeof(struct QH) * NUM_TD);
ehci->td = dma_alloc_coherent(sizeof(struct qTD) * NUM_TD);
+ host->hw_dev = dev;
host->init = ehci_init;
host->submit_int_msg = submit_int_msg;
host->submit_control_msg = submit_control_msg;