Merge tag 'u-boot-stm32-20210921' of https://source.denx.de/u-boot/custodians/u-boot-stm
[platform/kernel/u-boot.git] / net / eth_legacy.c
index 6870afb..f383ccc 100644 (file)
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <net.h>
 #include <phy.h>
+#include <asm/global_data.h>
 #include <linux/bug.h>
 #include <linux/errno.h>
 #include <net/pcap.h>
@@ -113,7 +114,7 @@ static int on_ethaddr(const char *name, const char *value, enum env_op op,
                return 0;
 
        /* look for an index after "eth" */
-       index = simple_strtoul(name + 3, NULL, 10);
+       index = dectoul(name + 3, NULL);
 
        dev = eth_devices;
        do {