ARM: davici_emac: Fix condition for number of phy detects
authorPrabhakar Lad <prabhakar.csengg@gmail.com>
Thu, 17 Nov 2011 02:53:23 +0000 (02:53 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 6 Dec 2011 22:59:37 +0000 (23:59 +0100)
commitb609009801b8a00644926f49b7d0d0cc0d3d8797
treea28c1b84228e190be72a5cc2cda03658005427e1
parent5cb939fb04a3d5f2ca1174a367a3fc27aed30c6a
ARM: davici_emac: Fix condition for number of phy detects

Fix the condition for number of phys in
davinci_eth_phy_detect() function.
CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT indicates number of
phys. From this commit id dc02badab480563b0bf9d3908046ea9d6b22ae63
davinci emac initilazed one less than the number of phy count.

Signed-off-by: Prabhakar Lad <prabhakar.csengg@gmail.com>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/net/davinci_emac.c