summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/cboot.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2019-09-14 03:21:16 +0300
committerJoe Hershberger <joe.hershberger@ni.com>2019-12-09 18:47:41 +0300
commitfb8977c5be93f8e967df224fe0a44721d60e34dc (patch)
tree49a2f694f9ba5eee2302570311ec21b00bb659aa /arch/arm/mach-tegra/cboot.c
parentb38c3a641fc01fcd4eda5fa107ae3c247baa0196 (diff)
downloadu-boot-fb8977c5be93f8e967df224fe0a44721d60e34dc.tar.xz
net: Always build the string_to_enetaddr() helper
Part of the env cleanup moved this out of the environment code and into the net code. However, this helper is sometimes needed even when the net stack isn't included. Move the helper to lib/net_utils.c like it's similarly-purposed string_to_ip(). Also rename the moved function to similar naming. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reported-by: Ondrej Jirman <megous@megous.com>
Diffstat (limited to 'arch/arm/mach-tegra/cboot.c')
-rw-r--r--arch/arm/mach-tegra/cboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/cboot.c b/arch/arm/mach-tegra/cboot.c
index 0433081c6c..0762144ecf 100644
--- a/arch/arm/mach-tegra/cboot.c
+++ b/arch/arm/mach-tegra/cboot.c
@@ -495,7 +495,7 @@ static int cboot_get_ethaddr_legacy(const void *fdt, uint8_t mac[ETH_ALEN])
return -ENOENT;
}
- eth_parse_enetaddr(prop, mac);
+ string_to_enetaddr(prop, mac);
if (!is_valid_ethaddr(mac)) {
printf("Invalid MAC address: %s\n", prop);