phy: cadence: phy-cadence-torrent: Change the name of subnode searched

Search for "phy" in the subnode names, to syncup with kernel.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
This commit is contained in:
Aswath Govindraju 2021-10-20 20:58:57 +05:30 committed by Tom Rini
parent c4eef59faa
commit 82c65587f6

View file

@ -616,8 +616,8 @@ static int cdns_torrent_phy_probe(struct udevice *dev)
/* Going through all the available subnodes or children*/ /* Going through all the available subnodes or children*/
ofnode_for_each_subnode(child, dev_ofnode(dev)) { ofnode_for_each_subnode(child, dev_ofnode(dev)) {
/* PHY subnode name must be a 'link' */ /* PHY subnode name must be a 'phy' */
if (!ofnode_name_eq(child, "link")) if (!ofnode_name_eq(child, "phy"))
continue; continue;
cdns_phy->phys[node].lnk_rst = cdns_phy->phys[node].lnk_rst =
devm_reset_bulk_get_by_node(dev, child); devm_reset_bulk_get_by_node(dev, child);