fec_imx: Use FEC_ECNTRL_RESET instead of a magic number
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
b0b00ad859
commit
5d60aa5269
|
@ -709,7 +709,7 @@ static int fec_probe(struct device_d *dev)
|
|||
|
||||
/* Reset chip. */
|
||||
writel(FEC_ECNTRL_RESET, fec->regs + FEC_ECNTRL);
|
||||
while(readl(fec->regs + FEC_ECNTRL) & 1) {
|
||||
while(readl(fec->regs + FEC_ECNTRL) & FEC_ECNTRL_RESET) {
|
||||
udelay(10);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue