Patchwork [U-Boot,02/11] FEC: Use defined constant instead of magic number

login
register
mail settings
Submitter Marek Vasut
Date Sept. 8, 2011, 8:37 p.m.
Message ID <1315514242-18998-3-git-send-email-marek.vasut@gmail.com>
Download mbox | patch
Permalink /patch/113936/
State Accepted
Commit 77dbd6ab7fcd8e24c14a7512417fa3b9c14ac786
Delegated to: Stefano Babic
Headers show

Comments

Marek Vasut - Sept. 8, 2011, 8:37 p.m.
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>
---
 drivers/net/fec_mxc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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