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:
parent
879cf26130
commit
77dbd6ab7f
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user