aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-mx6.c
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2020-03-04 08:59:50 +0800
committerMarek Vasut <marek.vasut+renesas@gmail.com>2020-03-30 03:48:53 +0200
commitac28e59a574dd231a4787752d923f618587e3d10 (patch)
tree25af956b562bdb145d755f0130e1d6fed992cf89 /drivers/usb/host/ehci-mx6.c
parent2be1130a93059b4ca0af037b896bb998e9907f8b (diff)
downloadu-boot-ac28e59a574dd231a4787752d923f618587e3d10.zip
u-boot-ac28e59a574dd231a4787752d923f618587e3d10.tar.gz
u-boot-ac28e59a574dd231a4787752d923f618587e3d10.tar.bz2
usb: Migrate to support live DT for some driver
Use ofnode_ instead of fdt_ APIs so that the drivers can support live DT. This patch updates usb_get_dr_mode() and usb_get_maximum_speed() to use ofnode as parameter instead of fdt offset. And all the drivers who use these APIs update to use live dt APIs at the same time. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/usb/host/ehci-mx6.c')
-rw-r--r--drivers/usb/host/ehci-mx6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
index 1993ad6..f2ceb51 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -513,7 +513,7 @@ static int ehci_usb_ofdata_to_platdata(struct udevice *dev)
struct usb_platdata *plat = dev_get_platdata(dev);
enum usb_dr_mode dr_mode;
- dr_mode = usb_get_dr_mode(dev_of_offset(dev));
+ dr_mode = usb_get_dr_mode(dev->node);
switch (dr_mode) {
case USB_DR_MODE_HOST: