summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb-new/musb_uboot.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-06-17 21:33:55 +0200
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:37 -0600
commite740ca3cab93a8cb31d870bffecd6aa8eadf44e1 (patch)
treeea2ff40689e9dc7e1dd73c5eecd7365229ee3e0e /drivers/usb/musb-new/musb_uboot.c
parent15837236386191f2a26706b5ee56cdb4ab28e6d5 (diff)
downloadtalos-obmc-uboot-e740ca3cab93a8cb31d870bffecd6aa8eadf44e1.tar.gz
talos-obmc-uboot-e740ca3cab93a8cb31d870bffecd6aa8eadf44e1.zip
musb: Update usb-compat to work with struct usb_device without a parent ptr
When building with CONFIG_DM_USB=y struct usb_device does not have a parent pointer. This commit adds support to the musb code to deal with this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/musb-new/musb_uboot.c')
-rw-r--r--drivers/usb/musb-new/musb_uboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c
index 70e87c9f0d..a96e8d2b74 100644
--- a/drivers/usb/musb-new/musb_uboot.c
+++ b/drivers/usb/musb-new/musb_uboot.c
@@ -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);
OpenPOWER on IntegriCloud