9
0
Fork 0

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:
Andrey Smirnov 2016-03-15 20:33:41 -07:00 committed by Sascha Hauer
parent b0b00ad859
commit 5d60aa5269
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}