usb: dwc3: st: Rely on child's compatible instead of name
authorPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 30 Sep 2022 14:20:18 +0000 (16:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2022 17:06:13 +0000 (19:06 +0200)
commit3f53c329b31d53b2a2e7992819242fc0d4f883e0
tree1bfe41ebdd2ad4babc5adc54bd8e228b0f974dc5
parent19905240aef0181d1e6944070eb85fce75f75bcd
usb: dwc3: st: Rely on child's compatible instead of name

To ensure that child node is found, don't rely on child's node name
which can take different value, but on child's compatible name.

Fixes: f5c5936d6b4d ("usb: dwc3: st: Fix node's child name")
Cc: stable <stable@kernel.org>
Cc: Jerome Audu <jerome.audu@st.com>
Reported-by: Felipe Balbi <felipe@balbi.sh>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20220930142018.890535-1-patrice.chotard@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-st.c