]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/musb-new/musb_host.c
musb: Update usb-compat to work with struct usb_device without a parent ptr
[karo-tx-uboot.git] / drivers / usb / musb-new / musb_host.c
index 437309ceb44a380bfed9b05d73d6f9828db08210..40b9c66af89bfea4be21ddffec5b6af2f0a445d2 100644 (file)
@@ -2067,7 +2067,11 @@ int musb_urb_enqueue(
 
        /* precompute addressing for external hub/tt ports */
        if (musb->is_multipoint) {
+#ifndef __UBOOT__
                struct usb_device       *parent = urb->dev->parent;
+#else
+               struct usb_device       *parent = usb_dev_get_parent(urb->dev);
+#endif
 
 #ifndef __UBOOT__
                if (parent != hcd->self.root_hub) {