From 77dbd6ab7fcd8e24c14a7512417fa3b9c14ac786 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sun, 11 Sep 2011 18:05:30 +0000 Subject: FEC: Use defined constant instead of magic number Signed-off-by: Marek Vasut Cc: Ben Warren Cc: Stefano Babic Cc: Wolfgang Denk Cc: Detlev Zundel --- drivers/net/fec_mxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/net') 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); /* -- cgit v1.1