diff options
author | Tom Rini <trini@konsulko.com> | 2015-10-27 19:08:19 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-27 19:08:19 -0400 |
commit | 2431492aef1de33bd222c97ecc131a338d9c454e (patch) | |
tree | 4e57720bbefe998dbafcce6a1fb015baa936a73e /drivers/usb/host/usb-uclass.c | |
parent | c139b5ff0999ec3d44a02ebdb623a92e5782e53e (diff) | |
parent | 4ea5243a3a2fbc59bbcdd401d75f1744bcd6280f (diff) | |
download | u-boot-imx-2431492aef1de33bd222c97ecc131a338d9c454e.zip u-boot-imx-2431492aef1de33bd222c97ecc131a338d9c454e.tar.gz u-boot-imx-2431492aef1de33bd222c97ecc131a338d9c454e.tar.bz2 |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/usb/host/usb-uclass.c')
-rw-r--r-- | drivers/usb/host/usb-uclass.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index c66ebb6..7f6a9a6 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -289,7 +289,7 @@ static struct usb_device *find_child_devnum(struct udevice *parent, int devnum) if (!device_active(parent)) return NULL; - udev = dev_get_parentdata(parent); + udev = dev_get_parent_priv(parent); if (udev->devnum == devnum) return udev; @@ -575,7 +575,7 @@ int usb_scan_device(struct udevice *parent, int port, udev->portnr = port; debug("Calling usb_setup_device(), portnr=%d\n", udev->portnr); parent_udev = device_get_uclass_id(parent) == UCLASS_USB_HUB ? - dev_get_parentdata(parent) : NULL; + dev_get_parent_priv(parent) : NULL; ret = usb_setup_device(udev, priv->desc_before_addr, parent_udev); debug("read_descriptor for '%s': ret=%d\n", parent->name, ret); if (ret) @@ -638,7 +638,7 @@ int usb_detect_change(void) if (!device_active(dev)) continue; - udev = dev_get_parentdata(dev); + udev = dev_get_parent_priv(dev); if (usb_get_port_status(udev, udev->portnr, &status) < 0) /* USB request failed */ @@ -694,7 +694,7 @@ struct udevice *usb_get_bus(struct udevice *dev) int usb_child_pre_probe(struct udevice *dev) { - struct usb_device *udev = dev_get_parentdata(dev); + struct usb_device *udev = dev_get_parent_priv(dev); struct usb_dev_platdata *plat = dev_get_parent_platdata(dev); int ret; |