]> git.sur5r.net Git - u-boot/commitdiff
FEC: Use defined constant instead of magic number
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 11 Sep 2011 18:05:30 +0000 (18:05 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 30 Sep 2011 20:01:01 +0000 (22:01 +0200)
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

index 82fe1e4ca61cd6a8ab6414e9ed630013e78d81aa..8e0d30a1318659aada57d1f04cff682501aaee66 100644 (file)
@@ -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);
 
        /*