]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/musb-new/musb_uboot.c
musb: Update usb-compat to work with struct usb_device without a parent ptr
[karo-tx-uboot.git] / drivers / usb / musb-new / musb_uboot.c
index 70e87c9f0dfcec25a07125c5482aa779d485a5c8..a96e8d2b7488bf273d25ecc34225764a6cc604b8 100644 (file)
@@ -97,7 +97,7 @@ int submit_control_msg(struct usb_device *dev, unsigned long pipe,
                      buffer, len, setup, 0);
 
        /* Fix speed for non hub-attached devices */
-       if (!dev->parent)
+       if (!usb_dev_get_parent(dev))
                dev->speed = host_speed;
 
        return submit_urb(&hcd, &urb);