]> git.sur5r.net Git - u-boot/commitdiff
FEC: Use proper accessor to read register in debug call
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 11 Sep 2011 18:05:29 +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 ab90afa41eb8f30c4a0611b155032473e9268c35..82fe1e4ca61cd6a8ab6414e9ed630013e78d81aa 100644 (file)
@@ -117,7 +117,7 @@ static void fec_mii_setspeed(struct fec_priv *fec)
        writel((((imx_get_fecclk() / 1000000) + 2) / 5) << 1,
                        &fec->eth->mii_speed);
        debug("fec_init: mii_speed %#lx\n",
-                       fec->eth->mii_speed);
+                       readl(&fec->eth->mii_speed));
 }
 static int fec_miiphy_write(const char *dev, uint8_t phyAddr, uint8_t regAddr,
                uint16_t data)