diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-06-17 21:33:55 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-21 17:39:37 -0600 |
commit | e740ca3cab93a8cb31d870bffecd6aa8eadf44e1 (patch) | |
tree | ea2ff40689e9dc7e1dd73c5eecd7365229ee3e0e /drivers/usb/musb-new/musb_uboot.c | |
parent | 15837236386191f2a26706b5ee56cdb4ab28e6d5 (diff) | |
download | u-boot-imx-e740ca3cab93a8cb31d870bffecd6aa8eadf44e1.zip u-boot-imx-e740ca3cab93a8cb31d870bffecd6aa8eadf44e1.tar.gz u-boot-imx-e740ca3cab93a8cb31d870bffecd6aa8eadf44e1.tar.bz2 |
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.c | 2 |
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 70e87c9..a96e8d2 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); |