From: Marek Vasut Date: Sun, 11 Sep 2011 18:05:29 +0000 (+0000) Subject: FEC: Use proper accessor to read register in debug call X-Git-Tag: v2011.12-rc1~664 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=879cf26130c72bcb1ed0951f4f252d22cd1bf71f;p=u-boot FEC: Use proper accessor to read register in debug call Signed-off-by: Marek Vasut Cc: Ben Warren Cc: Stefano Babic Cc: Wolfgang Denk Cc: Detlev Zundel --- diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index ab90afa41e..82fe1e4ca6 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -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)