X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=common%2Fcmd_mdio.c;h=77d8df12c5eacc04ea299a1f28b6c1181d7b5f60;hb=961c437b6cd68375d66c1f0cac9ade63115c0750;hp=cac070308969662e2794acbfbe3606f44af23e49;hpb=995daa0b81f35c93a1d14e5c6a932bc304d06718;p=u-boot diff --git a/common/cmd_mdio.c b/common/cmd_mdio.c index cac0703089..77d8df12c5 100644 --- a/common/cmd_mdio.c +++ b/common/cmd_mdio.c @@ -91,9 +91,9 @@ int mdio_read_ranges(struct mii_dev *bus, int addrlo, for (devad = devadlo; devad <= devadhi; devad++) { for (reg = reglo; reg <= reghi; reg++) { - u16 val; - val = bus->read(bus, addr, devad, reg); + int val; + val = bus->read(bus, addr, devad, reg); if (val < 0) { printf("Error\n"); @@ -193,7 +193,7 @@ static int do_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) struct mii_dev *bus; if (argc < 2) - return cmd_usage(cmdtp); + return CMD_RET_USAGE; /* * We use the last specified parameters, unless new ones are