usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter
authorPatrice Chotard <patrice.chotard@st.com>
Mon, 29 Jun 2020 09:19:02 +0000 (11:19 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 13 Aug 2020 07:19:18 +0000 (09:19 +0200)
commitf3858ce029915b8e737b56e0e30f7cdca52a7ebd
tree777ca423d594be1cabae5cee8e829dbd8b3ce9e3
parent554e5514ac00f204282c4a2376ae65935d104e60
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>
drivers/usb/host/dwc3-sti-glue.c