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>
This commit is contained in:
Marek Vasut 2011-09-11 18:05:30 +00:00 committed by Albert ARIBAUD
parent 879cf26130
commit 77dbd6ab7f

View File

@ -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);
/*