summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-09-11 18:05:30 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:01:01 +0200
commit77dbd6ab7fcd8e24c14a7512417fa3b9c14ac786 (patch)
treed0769099a98414c0d913b00796429b6edf483912 /drivers
parent879cf26130c72bcb1ed0951f4f252d22cd1bf71f (diff)
downloadu-boot-imx-77dbd6ab7fcd8e24c14a7512417fa3b9c14ac786.zip
u-boot-imx-77dbd6ab7fcd8e24c14a7512417fa3b9c14ac786.tar.gz
u-boot-imx-77dbd6ab7fcd8e24c14a7512417fa3b9c14ac786.tar.bz2
FEC: Use defined constant instead of magic number
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Ben Warren <biggerbadderben@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/fec_mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 82fe1e4..8e0d30a 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -712,7 +712,7 @@ static int fec_probe(bd_t *bd)
/* Reset chip. */
writel(readl(&fec->eth->ecntrl) | FEC_ECNTRL_RESET, &fec->eth->ecntrl);
- while (readl(&fec->eth->ecntrl) & 1)
+ while (readl(&fec->eth->ecntrl) & FEC_ECNTRL_RESET)
udelay(10);
/*