diff options
author | Michal Simek | 2021-04-26 14:26:48 +0200 |
---|---|---|
committer | Michal Simek | 2021-04-29 10:05:56 +0200 |
commit | 0a9f0e0d00e0e8b2c5b6a2ae844c5ebca684616f (patch) | |
tree | 0b81e3e7f46eaa9513f516aa6df8696583777665 /include/fsl_ddr_sdram.h | |
parent | 0b0705b5ed7865a1c86a3ed6ece82346e5f2e57f (diff) |
net: phy: xilinx: Break while loop over ethernet phy
The commit 6c993815bbea ("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: 6c993815bbea ("net: phy: xilinx: Be compatible with live OF tree")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/fsl_ddr_sdram.h')
0 files changed, 0 insertions, 0 deletions