cmd/bootefi: correct command syntax
[platform/kernel/u-boot.git] / cmd / mdio.c
index c48bb51..3c74326 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <dm.h>
 #include <miiphy.h>
 #include <phy.h>
 
@@ -253,7 +254,7 @@ static int do_mdio(struct cmd_tbl *cmdtp, int flag, int argc,
        switch (op[0]) {
        case 'w':
                if (pos > 1)
-                       data = simple_strtoul(argv[pos--], NULL, 16);
+                       data = hextoul(argv[pos--], NULL);
                /* Intentional fall-through - Get reg for read and write */
        case 'r':
                if (pos > 1)