Skip to content
Commit 0a9f0e0d authored by Michal Simek's avatar Michal Simek
Browse files

net: phy: xilinx: Break while loop over ethernet phy



The commit 6c993815 ("net: phy: xilinx: Be compatible with live OF
tree") change driver behavior to while loop which wasn't correct because
the driver was looping over again and again. The reason was that
ofnode_valid() is taking 0 as correct value.
Fix it by changing while loop to ofnode_for_each_subnode() which is only
loop over available nodes.

Fixes: 6c993815 ("net: phy: xilinx: Be compatible with live OF tree")
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 0b0705b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment