]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/phy/mv88e61xx.c
net: dc2114x: Add initialized eth_device structure
[u-boot] / drivers / net / phy / mv88e61xx.c
index 3754e8bdc43206760c184706ffbee78dc69fc398..2d1de0291700424fa62df72638b2d18a89baec09 100644 (file)
@@ -201,11 +201,11 @@ static void mv88e61xx_port_vlan_config(struct mv88e61xx_config *swconfig,
  */
 static int mv88e61xx_busychk(char *name)
 {
-       u32 reg = 0;
+       u16 reg = 0;
        u32 timeout = MV88E61XX_PHY_TIMEOUT;
        do {
                RD_PHY(name, MV88E61XX_GLB2REG_DEVADR,
-                      MV88E61XX_PHY_CMD, (u16 *) & reg);
+                      MV88E61XX_PHY_CMD, &reg);
                if (timeout-- == 0) {
                        printf("SMI busy timeout\n");
                        return -1;