diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2020-06-29 11:19:02 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@st.com> | 2020-08-13 09:19:18 +0200 |
commit | f3858ce029915b8e737b56e0e30f7cdca52a7ebd (patch) | |
tree | 777ca423d594be1cabae5cee8e829dbd8b3ce9e3 /drivers/usb | |
parent | 554e5514ac00f204282c4a2376ae65935d104e60 (diff) | |
download | u-boot-f3858ce029915b8e737b56e0e30f7cdca52a7ebd.tar.gz |
usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter
node varaible is used as iterator into ofnode_for_each_subnode()
loop, when exiting of it, node is no more a valid ofnode.
Use dwc3_node instead as parameter of ofnode_valid()
Fixes: ac28e59a574d ("usb: Migrate to support live DT for some driver")
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Cc: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/dwc3-sti-glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c index a72ab20168..3e6c1429d6 100644 --- a/drivers/usb/host/dwc3-sti-glue.c +++ b/drivers/usb/host/dwc3-sti-glue.c @@ -159,7 +159,7 @@ static int sti_dwc3_glue_bind(struct udevice *dev) dwc3_node = node; } - if (!ofnode_valid(node)) { + if (!ofnode_valid(dwc3_node)) { pr_err("Can't find dwc3 subnode for %s\n", dev->name); return -ENODEV; } |