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: ac28e59a57
("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>
This commit is contained in:
parent
554e5514ac
commit
f3858ce029
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue