]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/Marvell/rd6281a/rd6281a.c
miiphy: convert to linux/mii.h
[karo-tx-uboot.git] / board / Marvell / rd6281a / rd6281a.c
index e69e035308bdbcec164e788f14b58968764e6f51..ecdea82d90915005a7e2badb21bb9251760bd37f 100644 (file)
@@ -139,11 +139,11 @@ void mv_phy_88e1116_init(char *name)
        miiphy_write(name, devadr, MV88E1116_PGADR_REG, 0);
 
        /* reset the phy */
-       if (miiphy_read (name, devadr, PHY_BMCR, &reg) != 0) {
+       if (miiphy_read (name, devadr, MII_BMCR, &reg) != 0) {
                printf("Err..(%s) PHY status read failed\n", __FUNCTION__);
                return;
        }
-       if (miiphy_write (name, devadr, PHY_BMCR, reg | 0x8000) != 0) {
+       if (miiphy_write (name, devadr, MII_BMCR, reg | 0x8000) != 0) {
                printf("Err..(%s) PHY reset failed\n", __FUNCTION__);
                return;
        }