projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ARM: davici_emac: Fix condition for number of phy detects
[oweals/u-boot.git]
/
drivers
/
net
/
davinci_emac.c
diff --git
a/drivers/net/davinci_emac.c
b/drivers/net/davinci_emac.c
index d6c4e63d61a556e3a9ebf835f2a9266010580232..fbd0f1b7b58845cce5fb6e578b9bf44cff7127ce 100644
(file)
--- a/
drivers/net/davinci_emac.c
+++ b/
drivers/net/davinci_emac.c
@@
-220,7
+220,7
@@
static int davinci_eth_phy_detect(void)
for (i = 0, j = 0; i < 32; i++)
if (phy_act_state & (1 << i)) {
count++;
- if (count < CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT) {
+ if (count <
=
CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT) {
active_phy_addr[j++] = i;
} else {
printf("%s: to many PHYs detected.\n",